public class UberspectPublicFields extends Object implements Uberspect, RuntimeServicesAware
Modifier and Type | Field and Description |
---|---|
protected Introspector |
introspector
the default Velocity introspector
|
protected org.slf4j.Logger |
log
Our runtime logger.
|
Constructor and Description |
---|
UberspectPublicFields() |
Modifier and Type | Method and Description |
---|---|
Iterator |
getIterator(Object obj,
Info info)
To support iteratives - #foreach()
|
VelMethod |
getMethod(Object obj,
String method,
Object[] args,
Info info)
Returns a general method, corresponding to $foo.bar( $woogie )
|
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 |
setRuntimeServices(RuntimeServices rs)
Called automatically when event cartridge is initialized.
|
protected org.slf4j.Logger log
protected Introspector introspector
public void init()
public VelPropertyGet getPropertyGet(Object obj, String identifier, Info i)
getPropertyGet
in interface Uberspect
obj
- identifier
- i
- public VelPropertySet getPropertySet(Object obj, String identifier, Object arg, Info i)
getPropertySet
in interface Uberspect
obj
- identifier
- arg
- i
- public Iterator getIterator(Object obj, Info info)
Uberspect
getIterator
in interface Uberspect
obj
- info
- public VelMethod getMethod(Object obj, String method, Object[] args, Info info)
Uberspect
public void setRuntimeServices(RuntimeServices rs)
RuntimeServicesAware
setRuntimeServices
in interface RuntimeServicesAware
rs
- RuntimeServices object assigned during initializationCopyright © 2000–2021 The Apache Software Foundation. All rights reserved.