|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.jexl2.internal.Introspector
org.apache.commons.jexl2.introspection.UberspectImpl
org.apache.commons.jexl2.introspection.SandboxUberspectImpl
public class SandboxUberspectImpl
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.jexl2.introspection.UberspectImpl |
|---|
UberspectImpl.FieldPropertyGet, UberspectImpl.FieldPropertySet, UberspectImpl.IndexedContainer |
| Field Summary | |
|---|---|
protected Sandbox |
sandbox
The sandbox. |
| Fields inherited from class org.apache.commons.jexl2.introspection.UberspectImpl |
|---|
TRY_FAILED |
| Fields inherited from class org.apache.commons.jexl2.internal.Introspector |
|---|
rlog |
| Constructor Summary | |
|---|---|
SandboxUberspectImpl(org.apache.commons.logging.Log runtimeLogger,
Sandbox theSandbox)
A constructor for Sandbox uberspect. |
|
| Method Summary | |
|---|---|
JexlMethod |
getConstructorMethod(Object ctorHandle,
Object[] args,
JexlInfo info)
Returns a class constructor wrapped in a JexlMethod. |
JexlMethod |
getMethod(Object obj,
String method,
Object[] args,
JexlInfo info)
Returns a JexlMethod. |
JexlPropertyGet |
getPropertyGet(Object obj,
Object identifier,
JexlInfo info)
Property getter. |
JexlPropertySet |
getPropertySet(Object obj,
Object identifier,
Object arg,
JexlInfo info)
Property setter. |
void |
setLoader(ClassLoader cloader)
Resets this Uberspect class loader. |
| Methods inherited from class org.apache.commons.jexl2.introspection.UberspectImpl |
|---|
getConstructor, getField, getIndexedGet, getIterator |
| Methods inherited from class org.apache.commons.jexl2.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.jexl2.introspection.Uberspect |
|---|
setClassLoader |
| Field Detail |
|---|
protected final Sandbox sandbox
| Constructor Detail |
|---|
public SandboxUberspectImpl(org.apache.commons.logging.Log runtimeLogger,
Sandbox theSandbox)
runtimeLogger - the logger to use or null to use defaulttheSandbox - the sandbox instance to use| Method Detail |
|---|
public void setLoader(ClassLoader cloader)
setLoader in class UberspectImplcloader - the class loader to use
public JexlMethod getConstructorMethod(Object ctorHandle,
Object[] args,
JexlInfo info)
getConstructorMethod in interface UberspectgetConstructorMethod in class UberspectImplctorHandle - a class or class nameargs - constructor argumentsinfo - contextual information
Constructor
public JexlMethod getMethod(Object obj,
String method,
Object[] args,
JexlInfo info)
getMethod in interface UberspectgetMethod in class UberspectImplobj - the objectmethod - the method nameargs - method argumentsinfo - contextual information
JexlMethod
public JexlPropertyGet getPropertyGet(Object obj,
Object identifier,
JexlInfo info)
Returns JexlPropertyGet appropos for ${bar.woogie}.
getPropertyGet in interface UberspectgetPropertyGet in class UberspectImplobj - the object to get the property fromidentifier - property nameinfo - contextual information
JexlPropertyGet
public JexlPropertySet getPropertySet(Object obj,
Object identifier,
Object arg,
JexlInfo info)
returns JelPropertySet appropos for ${foo.bar = "geir"}
.
getPropertySet in interface UberspectgetPropertySet in class UberspectImplobj - 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 | |||||||||