public class CortexIntrospectorImpl extends java.lang.Object implements CortexIntrospector
This class is an implementation of CortexIntrospector that uses the following rules to resolve classes to Cortex objects. The rules are based on those used by java.beans.Introspector.
Introspector
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
Constructor and Description |
---|
CortexIntrospectorImpl()
Constructs and returns a new CortexIntrospectorImpl
|
Modifier and Type | Method and Description |
---|---|
protected void |
addToCache(java.lang.Class pClass,
Cortex pCortex)
Adds the specified mapping from class to Cortex, replacing any
existing mapping for that class.
|
java.util.Dictionary |
getCache()
Returns the cache mapping Class to Cortex
|
Cortex |
getCortex(java.lang.Class pClass)
Returns the Cortex associated with the given class.
|
void |
registerCortex(java.lang.Class pClass,
Cortex pCortex)
Registers the specified Cortex for the specified class.
|
public CortexIntrospectorImpl()
public java.util.Dictionary getCache()
protected void addToCache(java.lang.Class pClass, Cortex pCortex)
public Cortex getCortex(java.lang.Class pClass)
getCortex
in interface CortexIntrospector
pClass
- the class for which a Cortex is to be foundpublic void registerCortex(java.lang.Class pClass, Cortex pCortex)
registerCortex
in interface CortexIntrospector
pClass
- the Class with which the specified cortex is to be
associated.pCortex
- the Cortex to be associated with the specified class