public abstract class ClassSubstitutorAbstract extends Object implements ClassSubstitutor
| Constructor and Description |
|---|
ClassSubstitutorAbstract()
Will implicitly ignore the
DomainObjectContainer. |
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getClass(Class<?> cls)
Hook method for subclasses to override if required.
|
protected boolean |
ignore(Class<?> q)
For any classes registered as ignored,
getClass(Class) will
return null. |
protected boolean |
ignore(String className)
For any classes registered as ignored,
getClass(Class) will
return null. |
void |
init()
Default implementation does nothing.
|
void |
injectInto(Object candidate)
Will inject itself into the candidate if the candidate implements the
corresponding *Aware type.
|
void |
shutdown()
Default implementation does nothing.
|
public ClassSubstitutorAbstract()
DomainObjectContainer.public void init()
init in interface ApplicationScopedComponentpublic void shutdown()
shutdown in interface ApplicationScopedComponentpublic Class<?> getClass(Class<?> cls)
Default implementation will either return the class, unless has been
registered as to be ignored, in which case returns
null.
getClass in interface ClassSubstitutorprotected boolean ignore(Class<?> q)
getClass(Class) will
return null.protected boolean ignore(String className)
getClass(Class) will
return null.public void injectInto(Object candidate)
InjectableinjectInto in interface InjectableCopyright © 2010–2014 The Apache Software Foundation. All rights reserved.