use of org.springframework.roo.project.LogicalPath in project spring-roo by spring-projects.
the class DbreModelServiceImpl method getDbreXmlPath.
private String getDbreXmlPath() {
for (final String moduleName : getProjectOperations().getModuleNames()) {
final LogicalPath logicalPath = LogicalPath.getInstance(Path.SRC_MAIN_RESOURCES, moduleName);
final String dbreXmlPath = getProjectOperations().getPathResolver().getIdentifier(logicalPath, DBRE_XML);
if (getFileManager().exists(dbreXmlPath)) {
return dbreXmlPath;
}
}
return getProjectOperations().getPathResolver().getFocusedIdentifier(Path.SRC_MAIN_RESOURCES, DBRE_XML);
}
use of org.springframework.roo.project.LogicalPath in project spring-roo by spring-projects.
the class RepositoryJpaCustomMetadataProviderImpl method getGovernorPhysicalTypeIdentifier.
@Override
protected String getGovernorPhysicalTypeIdentifier(final String metadataIdentificationString) {
final JavaType javaType = RepositoryJpaCustomMetadata.getJavaType(metadataIdentificationString);
final LogicalPath path = RepositoryJpaCustomMetadata.getPath(metadataIdentificationString);
return PhysicalTypeIdentifier.createIdentifier(javaType, path);
}
use of org.springframework.roo.project.LogicalPath in project spring-roo by spring-projects.
the class ServiceImplMetadataProviderImpl method getServiceMetadata.
/**
* Returns {@link ServiceMetadata} of _serviceInterfaceDetails_
*
* Also register metadata dependencies
*
* @param metadataIdentificationString
* @param serviceInterfaceDetails
* @return
*/
private ServiceMetadata getServiceMetadata(final String metadataIdentificationString, ClassOrInterfaceTypeDetails serviceInterfaceDetails) {
final LogicalPath logicalPath = PhysicalTypeIdentifier.getPath(serviceInterfaceDetails.getDeclaredByMetadataId());
final String serviceMetadataKey = ServiceMetadata.createIdentifier(serviceInterfaceDetails.getType(), logicalPath);
registerDependency(serviceMetadataKey, metadataIdentificationString);
final ServiceMetadata serviceMetadata = (ServiceMetadata) getMetadataService().get(serviceMetadataKey);
return serviceMetadata;
}
use of org.springframework.roo.project.LogicalPath in project spring-roo by spring-projects.
the class RepositoryJpaMetadataProviderImpl method getGovernorPhysicalTypeIdentifier.
@Override
protected String getGovernorPhysicalTypeIdentifier(final String metadataIdentificationString) {
final JavaType javaType = RepositoryJpaMetadata.getJavaType(metadataIdentificationString);
final LogicalPath path = RepositoryJpaMetadata.getPath(metadataIdentificationString);
return PhysicalTypeIdentifier.createIdentifier(javaType, path);
}
use of org.springframework.roo.project.LogicalPath in project spring-roo by spring-projects.
the class SecurityAuthorizationsMetadataProviderImpl method getGovernorPhysicalTypeIdentifier.
@Override
protected String getGovernorPhysicalTypeIdentifier(final String metadataIdentificationString) {
final JavaType javaType = SecurityAuthorizationsMetadata.getJavaType(metadataIdentificationString);
final LogicalPath path = SecurityAuthorizationsMetadata.getPath(metadataIdentificationString);
return PhysicalTypeIdentifier.createIdentifier(javaType, path);
}
Aggregations