|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.jexl3.internal.Introspector
org.apache.commons.jexl3.internal.introspection.Uberspect
org.apache.commons.jexl3.internal.introspection.SandboxUberspect
public class SandboxUberspect
An uberspect that controls usage of properties, methods and contructors through a sandbox.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.commons.jexl3.internal.introspection.Uberspect |
---|
Uberspect.IndexedContainer |
Field Summary | |
---|---|
protected Sandbox |
sandbox
The sandbox. |
Fields inherited from class org.apache.commons.jexl3.internal.introspection.Uberspect |
---|
TRY_FAILED |
Fields inherited from class org.apache.commons.jexl3.internal.Introspector |
---|
rlog |
Constructor Summary | |
---|---|
SandboxUberspect(org.apache.commons.logging.Log runtimeLogger,
Sandbox theSandbox)
A constructor for Sandbox uberspect. |
Method Summary | |
---|---|
JexlMethod |
getConstructor(Object ctorHandle,
Object[] args,
JexlInfo.Handle info)
Returns a class constructor. |
JexlMethod |
getMethod(Object obj,
String method,
Object[] args,
JexlInfo.Handle info)
Returns a JexlMethod. |
JexlPropertyGet |
getPropertyGet(Object obj,
Object identifier,
JexlInfo.Handle info)
Property getter. Returns JexlPropertyGet appropos for ${bar.woogie}. |
JexlPropertySet |
getPropertySet(Object obj,
Object identifier,
Object arg,
JexlInfo.Handle info)
Property setter. returns JelPropertySet appropos for ${foo.bar = "geir"} . |
void |
setLoader(ClassLoader cloader)
Resets this Uberspect class loader. |
Methods inherited from class org.apache.commons.jexl3.internal.introspection.Uberspect |
---|
getField, getIndexedGet, getIterator |
Methods inherited from class org.apache.commons.jexl3.internal.Introspector |
---|
base, getClassByName, getConstructor, getField, getFieldNames, getGetExecutor, getMethod, getMethod, getMethodExecutor, getMethodNames, getMethods, getSetExecutor, setClassLoader, toInteger, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.commons.jexl3.introspection.Uberspect |
---|
setClassLoader |
Field Detail |
---|
protected final Sandbox sandbox
Constructor Detail |
---|
public SandboxUberspect(org.apache.commons.logging.Log runtimeLogger, Sandbox theSandbox)
runtimeLogger
- the logger to use or null to use defaulttheSandbox
- the sandbox instance to useMethod Detail |
---|
public void setLoader(ClassLoader cloader)
setLoader
in class Uberspect
cloader
- the class loader to usepublic JexlMethod getConstructor(Object ctorHandle, Object[] args, JexlInfo.Handle info)
getConstructor
in interface Uberspect
getConstructor
in class Uberspect
ctorHandle
- a class or class nameargs
- constructor argumentsinfo
- contextual information
JexlMethod
public JexlMethod getMethod(Object obj, String method, Object[] args, JexlInfo.Handle info)
getMethod
in interface Uberspect
getMethod
in class Uberspect
obj
- the objectmethod
- the method nameargs
- method argumentsinfo
- contextual information
JexlMethod
public JexlPropertyGet getPropertyGet(Object obj, Object identifier, JexlInfo.Handle info)
Returns JexlPropertyGet appropos for ${bar.woogie}.
getPropertyGet
in interface Uberspect
getPropertyGet
in class Uberspect
obj
- the object to get the property fromidentifier
- property nameinfo
- contextual information
JexlPropertyGet
public JexlPropertySet getPropertySet(Object obj, Object identifier, Object arg, JexlInfo.Handle info)
returns JelPropertySet appropos for ${foo.bar = "geir"}
.
getPropertySet
in interface Uberspect
getPropertySet
in class Uberspect
obj
- the object to get the property from.identifier
- property namearg
- value to setinfo
- contextual information
JexlPropertySet
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |