public class UberspectImpl extends Object implements Uberspect, UberspectLoggable
| Modifier and Type | Class and Description |
|---|---|
static class |
UberspectImpl.VelGetterImpl |
static class |
UberspectImpl.VelMethodImpl
Implementation of VelMethod
|
static class |
UberspectImpl.VelSetterImpl |
| Modifier and Type | Field and Description |
|---|---|
protected Introspector |
introspector
the default Velocity introspector
|
protected Log |
log
Our runtime logger.
|
| Constructor and Description |
|---|
UberspectImpl() |
| Modifier and Type | Method and Description |
|---|---|
Iterator |
getIterator(Object obj,
Info i)
To support iterative objects used in a
#foreach()
loop. |
VelMethod |
getMethod(Object obj,
String methodName,
Object[] args,
Info i)
Method
|
VelPropertyGet |
getPropertyGet(Object obj,
String identifier,
Info i)
Property getter
|
VelPropertySet |
getPropertySet(Object obj,
String identifier,
Object arg,
Info i)
Property setter
|
void |
init()
init - generates the Introspector.
|
void |
setLog(Log log)
Sets the runtime logger - this must be called before anything
else.
|
void |
setRuntimeLogger(RuntimeLogger runtimeLogger)
Deprecated.
Use setLog(Log log) instead.
|
protected Log log
protected Introspector introspector
public void init()
public void setLog(Log log)
setLog in interface UberspectLoggablelog - The logger instance to use.public void setRuntimeLogger(RuntimeLogger runtimeLogger)
setRuntimeLogger in interface UberspectLoggableruntimeLogger - public Iterator getIterator(Object obj, Info i) throws Exception
#foreach()
loop.getIterator in interface Uberspectobj - The iterative object.i - Info about the object's location.Iterator object.Exceptionpublic VelMethod getMethod(Object obj, String methodName, Object[] args, Info i) throws Exception
public VelPropertyGet getPropertyGet(Object obj, String identifier, Info i) throws Exception
getPropertyGet in interface Uberspectobj - identifier - i - Exceptionpublic VelPropertySet getPropertySet(Object obj, String identifier, Object arg, Info i) throws Exception
getPropertySet in interface Uberspectobj - identifier - arg - i - ExceptionCopyright © 2000–2016. All rights reserved.