public class SandboxUberspectImpl extends UberspectImpl
UberspectImpl.FieldPropertyGet, UberspectImpl.FieldPropertySet, UberspectImpl.IndexedContainer
Modifier and Type | Field and Description |
---|---|
protected Sandbox |
sandbox
The sandbox.
|
TRY_FAILED
rlog
Constructor and Description |
---|
SandboxUberspectImpl(org.apache.commons.logging.Log runtimeLogger,
Sandbox theSandbox)
A constructor for Sandbox uberspect.
|
Modifier and Type | Method and Description |
---|---|
JexlMethod |
getConstructorMethod(java.lang.Object ctorHandle,
java.lang.Object[] args,
JexlInfo info)
Returns a class constructor wrapped in a JexlMethod.
|
JexlMethod |
getMethod(java.lang.Object obj,
java.lang.String method,
java.lang.Object[] args,
JexlInfo info)
Returns a JexlMethod.
|
JexlPropertyGet |
getPropertyGet(java.lang.Object obj,
java.lang.Object identifier,
JexlInfo info)
Property getter.
|
JexlPropertySet |
getPropertySet(java.lang.Object obj,
java.lang.Object identifier,
java.lang.Object arg,
JexlInfo info)
Property setter.
|
void |
setLoader(java.lang.ClassLoader cloader)
Resets this Uberspect class loader.
|
getConstructor, getField, getIndexedGet, getIterator
base, getClassByName, getConstructor, getField, getFieldNames, getGetExecutor, getMethod, getMethod, getMethodExecutor, getMethodNames, getMethods, getSetExecutor, setClassLoader, toInteger, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setClassLoader
public SandboxUberspectImpl(org.apache.commons.logging.Log runtimeLogger, Sandbox theSandbox)
runtimeLogger
- the logger to use or null to use defaulttheSandbox
- the sandbox instance to usepublic void setLoader(java.lang.ClassLoader cloader)
setLoader
in class UberspectImpl
cloader
- the class loader to usepublic JexlMethod getConstructorMethod(java.lang.Object ctorHandle, java.lang.Object[] args, JexlInfo info)
getConstructorMethod
in interface Uberspect
getConstructorMethod
in class UberspectImpl
ctorHandle
- a class or class nameargs
- constructor argumentsinfo
- contextual informationConstructor
public JexlMethod getMethod(java.lang.Object obj, java.lang.String method, java.lang.Object[] args, JexlInfo info)
getMethod
in interface Uberspect
getMethod
in class UberspectImpl
obj
- the objectmethod
- the method nameargs
- method argumentsinfo
- contextual informationJexlMethod
public JexlPropertyGet getPropertyGet(java.lang.Object obj, java.lang.Object identifier, JexlInfo info)
Returns JexlPropertyGet appropos for ${bar.woogie}.
getPropertyGet
in interface Uberspect
getPropertyGet
in class UberspectImpl
obj
- the object to get the property fromidentifier
- property nameinfo
- contextual informationJexlPropertyGet
public JexlPropertySet getPropertySet(java.lang.Object obj, java.lang.Object identifier, java.lang.Object arg, JexlInfo info)
returns JelPropertySet appropos for ${foo.bar = "geir"}
.getPropertySet
in interface Uberspect
getPropertySet
in class UberspectImpl
obj
- the object to get the property from.identifier
- property namearg
- value to setinfo
- contextual informationJexlPropertySet
.