use of org.springframework.roo.project.LogicalPath in project spring-roo by spring-projects.
the class JsonControllerIntegrationTestMetadataProviderImpl method getGovernorPhysicalTypeIdentifier.
@Override
protected String getGovernorPhysicalTypeIdentifier(final String metadataIdentificationString) {
final JavaType javaType = JsonControllerIntegrationTestMetadata.getJavaType(metadataIdentificationString);
final LogicalPath path = JsonControllerIntegrationTestMetadata.getPath(metadataIdentificationString);
return PhysicalTypeIdentifier.createIdentifier(javaType, path);
}
use of org.springframework.roo.project.LogicalPath in project spring-roo by spring-projects.
the class ThymeleafMetadataProviderImpl method getGovernorPhysicalTypeIdentifier.
@Override
protected String getGovernorPhysicalTypeIdentifier(final String metadataIdentificationString) {
final JavaType javaType = ThymeleafMetadata.getJavaType(metadataIdentificationString);
final LogicalPath path = ThymeleafMetadata.getPath(metadataIdentificationString);
return PhysicalTypeIdentifier.createIdentifier(javaType, path);
}
use of org.springframework.roo.project.LogicalPath in project spring-roo by spring-projects.
the class JspMetadataListener method notify.
public void notify(final String upstreamDependency, String downstreamDependency) {
if (MetadataIdentificationUtils.isIdentifyingClass(downstreamDependency)) {
// been
if (WebScaffoldMetadata.isValid(upstreamDependency)) {
final JavaType javaType = WebScaffoldMetadata.getJavaType(upstreamDependency);
final LogicalPath path = WebScaffoldMetadata.getPath(upstreamDependency);
downstreamDependency = JspMetadata.createIdentifier(javaType, path);
} else if (WebFinderMetadata.isValid(upstreamDependency)) {
final JavaType javaType = WebFinderMetadata.getJavaType(upstreamDependency);
final LogicalPath path = WebFinderMetadata.getPath(upstreamDependency);
downstreamDependency = JspMetadata.createIdentifier(javaType, path);
}
// later on)
if (getMetadataDependencyRegistry().getDownstream(upstreamDependency).contains(downstreamDependency)) {
return;
}
} else if (MetadataIdentificationUtils.isIdentifyingInstance(upstreamDependency)) {
// This is the generic fallback listener, ie from
// MetadataDependencyRegistry.addListener(this) in the activate()
// method
// Get the metadata that just changed
final MetadataItem metadataItem = getMetadataService().get(upstreamDependency);
// detected
if (metadataItem == null || !metadataItem.isValid() || !(metadataItem instanceof ItdTypeDetailsProvidingMetadataItem)) {
// let's gracefully abort
return;
}
// Let's ensure we have some ITD type details to actually work with
final ItdTypeDetailsProvidingMetadataItem itdMetadata = (ItdTypeDetailsProvidingMetadataItem) metadataItem;
final ItdTypeDetails itdTypeDetails = itdMetadata.getMemberHoldingTypeDetails();
if (itdTypeDetails == null) {
return;
}
final String localMid = formBackingObjectTypesToLocalMids.get(itdTypeDetails.getGovernor().getName());
if (localMid != null) {
getMetadataService().evictAndGet(localMid);
}
return;
}
if (MetadataIdentificationUtils.isIdentifyingInstance(downstreamDependency)) {
getMetadataService().evictAndGet(downstreamDependency);
}
}
use of org.springframework.roo.project.LogicalPath in project spring-roo by spring-projects.
the class ThymeleafUIConfigurationMetadataProviderImpl method getGovernorPhysicalTypeIdentifier.
@Override
protected String getGovernorPhysicalTypeIdentifier(final String metadataIdentificationString) {
final JavaType javaType = ThymeleafUIConfigurationMetadata.getJavaType(metadataIdentificationString);
final LogicalPath path = ThymeleafUIConfigurationMetadata.getPath(metadataIdentificationString);
return PhysicalTypeIdentifier.createIdentifier(javaType, path);
}
use of org.springframework.roo.project.LogicalPath in project spring-roo by spring-projects.
the class WebMvcConfigurationMetadataProviderImpl method getGovernorPhysicalTypeIdentifier.
@Override
protected String getGovernorPhysicalTypeIdentifier(final String metadataIdentificationString) {
final JavaType javaType = WebMvcConfigurationMetadata.getJavaType(metadataIdentificationString);
final LogicalPath path = WebMvcConfigurationMetadata.getPath(metadataIdentificationString);
return PhysicalTypeIdentifier.createIdentifier(javaType, path);
}
Aggregations