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 UberspectLoggable
log
- The logger instance to use.public void setRuntimeLogger(RuntimeLogger runtimeLogger)
setRuntimeLogger
in interface UberspectLoggable
runtimeLogger
- public Iterator getIterator(Object obj, Info i) throws Exception
#foreach()
loop.getIterator
in interface Uberspect
obj
- The iterative object.i
- Info about the object's location.Iterator
object.Exception
public 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 Uberspect
obj
- identifier
- i
- Exception
public VelPropertySet getPropertySet(Object obj, String identifier, Object arg, Info i) throws Exception
getPropertySet
in interface Uberspect
obj
- identifier
- arg
- i
- Exception
Copyright © 2000–2021. All rights reserved.