|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.velocity.util.introspection.UberspectImpl
Implementation of Uberspect to provide the default introspective functionality of Velocity
Nested Class Summary | |
class |
UberspectImpl.VelGetterImpl
|
class |
UberspectImpl.VelMethodImpl
Implementation of VelMethod |
class |
UberspectImpl.VelSetterImpl
|
Field Summary | |
private static Introspector |
introspector
the default Velocity introspector |
private RuntimeLogger |
rlog
Our runtime logger. |
Constructor Summary | |
UberspectImpl()
|
Method Summary | |
java.util.Iterator |
getIterator(java.lang.Object obj,
Info i)
To support iterative objects used in a #foreach()
loop. |
VelMethod |
getMethod(java.lang.Object obj,
java.lang.String methodName,
java.lang.Object[] args,
Info i)
Method |
VelPropertyGet |
getPropertyGet(java.lang.Object obj,
java.lang.String identifier,
Info i)
Property getter |
VelPropertySet |
getPropertySet(java.lang.Object obj,
java.lang.String identifier,
java.lang.Object arg,
Info i)
Property setter |
void |
init()
init - does nothing - we need to have setRuntimeLogger called before getting our introspector, as the default vel introspector depends upon it. |
void |
setRuntimeLogger(RuntimeLogger runtimeLogger)
Sets the runtime logger - this must be called before anything else besides init() as to get the logger. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private RuntimeLogger rlog
private static Introspector introspector
Constructor Detail |
public UberspectImpl()
Method Detail |
public void init() throws java.lang.Exception
init
in interface Uberspect
java.lang.Exception
public void setRuntimeLogger(RuntimeLogger runtimeLogger)
setRuntimeLogger
in interface UberspectLoggable
public java.util.Iterator getIterator(java.lang.Object obj, Info i) throws java.lang.Exception
#foreach()
loop.
getIterator
in interface Uberspect
obj
- The iterative object.i
- Info about the object's location.
java.lang.Exception
public VelMethod getMethod(java.lang.Object obj, java.lang.String methodName, java.lang.Object[] args, Info i) throws java.lang.Exception
getMethod
in interface Uberspect
java.lang.Exception
public VelPropertyGet getPropertyGet(java.lang.Object obj, java.lang.String identifier, Info i) throws java.lang.Exception
getPropertyGet
in interface Uberspect
java.lang.Exception
public VelPropertySet getPropertySet(java.lang.Object obj, java.lang.String identifier, java.lang.Object arg, Info i) throws java.lang.Exception
getPropertySet
in interface Uberspect
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |