public class SpecificationLoaderDelegator extends SpecificationLoaderAbstract
SpecificationLoader to be provided even if the concrete
implementation is only available later.| Constructor and Description |
|---|
SpecificationLoaderDelegator() |
| Modifier and Type | Method and Description |
|---|---|
Collection<ObjectSpecification> |
allSpecifications() |
List<Class<?>> |
getServiceClasses() |
void |
injectInto(Object candidate)
Will inject itself into the candidate if the candidate implements the
corresponding *Aware type.
|
ObjectSpecification |
introspectIfRequired(ObjectSpecification spec)
Typically does not need to be called, but is available for
FacetFactorys to force
early introspection of referenced specs in certain circumstances. |
void |
invalidateCache(Class<?> domainClass) |
boolean |
loaded(Class<?> cls)
Whether this class has been loaded.
|
boolean |
loaded(String fullyQualifiedClassName) |
ObjectSpecification |
loadSpecification(Class<?> cls) |
ObjectSpecification |
loadSpecification(String fullyQualifiedClassName)
Return the specification for the specified class of object.
|
boolean |
loadSpecifications(List<Class<?>> typesToLoad)
Loads the specifications of the specified types.
|
boolean |
loadSpecifications(List<Class<?>> typesToLoad,
Class<?> typeToIgnore)
Loads the specifications of the specified types except the one specified
(to prevent an infinite loop).
|
ObjectSpecification |
lookupBySpecId(ObjectSpecId objectSpecId) |
void |
setDelegate(SpecificationLoader specificationLoaderDelegate) |
public SpecificationLoaderDelegator()
public void setDelegate(SpecificationLoader specificationLoaderDelegate)
public ObjectSpecification loadSpecification(Class<?> cls)
public Collection<ObjectSpecification> allSpecifications()
public ObjectSpecification lookupBySpecId(ObjectSpecId objectSpecId)
public boolean loadSpecifications(List<Class<?>> typesToLoad, Class<?> typeToIgnore)
SpecificationLoaderpublic ObjectSpecification loadSpecification(String fullyQualifiedClassName)
SpecificationLoader
It is possible for this method to return null, for example if
the configured #getClassSubstitutor() has filtered out the class.
public boolean loaded(Class<?> cls)
SpecificationLoaderpublic boolean loaded(String fullyQualifiedClassName)
SpecificationLoader.loaded(Class).public boolean loadSpecifications(List<Class<?>> typesToLoad)
SpecificationLoaderpublic ObjectSpecification introspectIfRequired(ObjectSpecification spec)
SpecificationLoaderFacetFactorys to force
early introspection of referenced specs in certain circumstances.
Originally introduced to support AutoCompleteFacet.
public List<Class<?>> getServiceClasses()
public void invalidateCache(Class<?> domainClass)
public void injectInto(Object candidate)
InjectableinjectInto in interface InjectableinjectInto in class SpecificationLoaderAbstractCopyright © 2010–2014 The Apache Software Foundation. All rights reserved.