use of org.springframework.roo.classpath.TypeLocationService in project spring-roo by spring-projects.
the class AbstractItdMetadataProvider method getMemberDetails.
/**
* Returns details of the given Java type's members
*
* @param type the type for which to get the members (required)
* @return <code>null</code> if the member details are unavailable
*/
protected MemberDetails getMemberDetails(final JavaType type) {
TypeLocationService typeLocationService = getTypeLocationService();
Validate.notNull(typeLocationService, "TypeLocationService is required");
final String physicalTypeIdentifier = typeLocationService.getPhysicalTypeIdentifier(type);
if (physicalTypeIdentifier == null) {
return null;
}
// We need to lookup the metadata we depend on
final PhysicalTypeMetadata physicalTypeMetadata = (PhysicalTypeMetadata) getMetadataService().get(physicalTypeIdentifier);
return getMemberDetails(physicalTypeMetadata);
}
Aggregations