public boolean loaded(final String fullyQualifiedClassName) {
return getCache().get(fullyQualifiedClassName) != null;
}
public ObjectSpecification introspectIfRequired(final ObjectSpecification spec) {
final ObjectSpecificationAbstract specSpi = (ObjectSpecificationAbstract)spec;
final IntrospectionState introspectionState = specSpi.getIntrospectionState();
if (introspectionState == IntrospectionState.NOT_INTROSPECTED) {
specSpi.setIntrospectionState(IntrospectionState.BEING_INTROSPECTED);
specSpi.introspectTypeHierarchyAndMembers();
facetDecoratorSet.decorate(spec);
specSpi.updateFromFacetValues();
specSpi.setIntrospectionState(IntrospectionState.INTROSPECTED);
} else if (introspectionState == IntrospectionState.BEING_INTROSPECTED) {
// nothing to do
specSpi.introspectTypeHierarchyAndMembers();
facetDecoratorSet.decorate(spec);
specSpi.updateFromFacetValues();
specSpi.setIntrospectionState(IntrospectionState.INTROSPECTED);
} else if (introspectionState == IntrospectionState.INTROSPECTED) {
// nothing to do
}
return spec;