|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.commons.jexl.util.introspection.UberspectImpl
Implementation of Uberspect to provide the default introspective functionality of Velocity.
Inner Class Summary | |
class |
UberspectImpl.VelGetterImpl
{@inheritDoc} |
class |
UberspectImpl.VelMethodImpl
An implementation of VelMethod . |
class |
UberspectImpl.VelSetterImpl
{@inheritDoc} |
Constructor Summary | |
UberspectImpl()
|
Method Summary | |
Iterator |
getIterator(Object obj,
Info i)
{@inheritDoc} |
VelMethod |
getMethod(Object obj,
String methodName,
Object[] args,
Info i)
{@inheritDoc} |
VelPropertyGet |
getPropertyGet(Object obj,
String identifier,
Info i)
{@inheritDoc} |
VelPropertySet |
getPropertySet(Object obj,
String identifier,
Object arg,
Info i)
{@inheritDoc} |
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(Log 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 |
Constructor Detail |
public UberspectImpl()
Method Detail |
public void init() throws Exception
init
in interface Uberspect
Exception
- on any error.public void setRuntimeLogger(Log runtimeLogger)
setRuntimeLogger
in interface UberspectLoggable
runtimeLogger
- service to use for logging.public Iterator getIterator(Object obj, Info i) throws Exception
getIterator
in interface Uberspect
org.apache.commons.jexl.util.introspection.Uberspect
info
- template info.obj
- to get the iterator for.Exception
- on any error.public VelMethod getMethod(Object obj, String methodName, Object[] args, Info i) throws Exception
getMethod
in interface Uberspect
org.apache.commons.jexl.util.introspection.Uberspect
obj
- the objectmethod
- the method nameargs
- method argumentsinfo
- template infoVelMethod
.Exception
- on any error.public VelPropertyGet getPropertyGet(Object obj, String identifier, Info i) throws Exception
getPropertyGet
in interface Uberspect
org.apache.commons.jexl.util.introspection.Uberspect
obj
- the object to get the property from.identifier
- property nameinfo
- template infoVelPropertyGet
.Exception
- on any error.public VelPropertySet getPropertySet(Object obj, String identifier, Object arg, Info i) throws Exception
getPropertySet
in interface Uberspect
org.apache.commons.jexl.util.introspection.Uberspect
obj
- the object to get the property from.identifier
- property namearg
- value to set.info
- template infoVelPropertySet
.Exception
- on any error.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |