public abstract class AbstractProcessor extends Object implements Serializable, Processor
| Modifier and Type | Field and Description |
|---|---|
protected Map<Class,Handler> |
m_Cache
the cache for the handlers.
|
protected Handler[] |
m_Handlers
the available handlers.
|
protected Logger |
m_Logger
for logging.
|
protected Traverser |
m_Traverser
the traverser to use.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractProcessor()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Handler |
getHandler(Class cls)
Returns the handler for the class.
|
Handler |
getHandler(Object obj)
Returns the handler for the object.
|
protected Logger |
getLogger()
Returns the logger in use.
|
static Class[] |
getProcessors()
Returns all the available processors.
|
Traverser |
getTraverser()
Returtns the traverser in use.
|
protected void |
initialize()
Initializes the members.
|
void |
setTraverser(Traverser value)
Sets the traverser to use.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfromCommandline, getOptions, setOptions, toCommandlineprotected Logger m_Logger
protected Handler[] m_Handlers
protected Traverser m_Traverser
protected void initialize()
protected Logger getLogger()
public void setTraverser(Traverser value)
value - the traverserpublic Traverser getTraverser()
public Handler getHandler(Object obj)
obj - the object to get the handler forpublic Handler getHandler(Class cls)
cls - the class to get the handler forpublic static Class[] getProcessors()
Copyright © 2017 University of Waikato, Hamilton, NZ. All Rights Reserved.