/** * Obtains the a fresh copy of the {@link ClassOrInterfaceTypeDetails} for * the given physical type. * * @param physicalTypeIdentifier to lookup (required) * @return the requested details (or <code>null</code> if unavailable) */ private ClassOrInterfaceTypeDetails lookupClassOrInterfaceTypeDetails( final String physicalTypeIdentifier) { final PhysicalTypeMetadata physicalTypeMetadata = (PhysicalTypeMetadata) getMetadataService().evictAndGet(physicalTypeIdentifier); if (physicalTypeMetadata == null) { return null; } return physicalTypeMetadata.getMemberHoldingTypeDetails(); }
public ClassOrInterfaceTypeDetails getTypeDetails(final String physicalTypeId) { if (StringUtils.isBlank(physicalTypeId)) { return null; } Validate.isTrue(PhysicalTypeIdentifier.isValid(physicalTypeId), "Metadata id '%s' is not a valid physical type id", physicalTypeId); updateTypeCache(); final ClassOrInterfaceTypeDetails cachedDetails = getTypeCache().getTypeDetails(physicalTypeId); if (cachedDetails != null) { return cachedDetails; } final PhysicalTypeMetadata physicalTypeMetadata = (PhysicalTypeMetadata) getMetadataService().get(physicalTypeId); if (physicalTypeMetadata == null) { return null; } return physicalTypeMetadata.getMemberHoldingTypeDetails(); }
/** * Obtains the a fresh copy of the {@link ClassOrInterfaceTypeDetails} for * the given physical type. * * @param physicalTypeIdentifier to lookup (required) * @return the requested details (or <code>null</code> if unavailable) */ private ClassOrInterfaceTypeDetails lookupClassOrInterfaceTypeDetails( final String physicalTypeIdentifier) { final PhysicalTypeMetadata physicalTypeMetadata = (PhysicalTypeMetadata) getMetadataService().evictAndGet(physicalTypeIdentifier); if (physicalTypeMetadata == null) { return null; } return physicalTypeMetadata.getMemberHoldingTypeDetails(); }
public ClassOrInterfaceTypeDetails getTypeDetails(final String physicalTypeId) { if (StringUtils.isBlank(physicalTypeId)) { return null; } Validate.isTrue(PhysicalTypeIdentifier.isValid(physicalTypeId), "Metadata id '%s' is not a valid physical type id", physicalTypeId); updateTypeCache(); final ClassOrInterfaceTypeDetails cachedDetails = getTypeCache().getTypeDetails(physicalTypeId); if (cachedDetails != null) { return cachedDetails; } final PhysicalTypeMetadata physicalTypeMetadata = (PhysicalTypeMetadata) getMetadataService().get(physicalTypeId); if (physicalTypeMetadata == null) { return null; } return physicalTypeMetadata.getMemberHoldingTypeDetails(); }