Class SandboxUberspectImpl
java.lang.Object
edu.internet2.middleware.grouperClientExt.org.apache.commons.jexl2.internal.Introspector
edu.internet2.middleware.grouperClientExt.org.apache.commons.jexl2.introspection.UberspectImpl
edu.internet2.middleware.grouperClientExt.org.apache.commons.jexl2.introspection.SandboxUberspectImpl
- All Implemented Interfaces:
Uberspect
An uberspect that controls usage of properties, methods and contructors through a sandbox.
- Since:
- 2.1
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.internet2.middleware.grouperClientExt.org.apache.commons.jexl2.introspection.UberspectImpl
UberspectImpl.FieldPropertyGet, UberspectImpl.FieldPropertySet, UberspectImpl.IndexedContainer
-
Field Summary
Fields inherited from class edu.internet2.middleware.grouperClientExt.org.apache.commons.jexl2.introspection.UberspectImpl
TRY_FAILED
Fields inherited from class edu.internet2.middleware.grouperClientExt.org.apache.commons.jexl2.internal.Introspector
rlog
-
Constructor Summary
ConstructorDescriptionSandboxUberspectImpl
(Log runtimeLogger, Sandbox theSandbox) A constructor for Sandbox uberspect. -
Method Summary
Modifier and TypeMethodDescriptiongetConstructorMethod
(Object ctorHandle, Object[] args, JexlInfo info) Returns a class constructor wrapped in a JexlMethod.Returns a JexlMethod.getPropertyGet
(Object obj, Object identifier, JexlInfo info) Property getter.getPropertySet
(Object obj, Object identifier, Object arg, JexlInfo info) Property setter.void
setLoader
(ClassLoader cloader) Resets this Uberspect class loader.Methods inherited from class edu.internet2.middleware.grouperClientExt.org.apache.commons.jexl2.introspection.UberspectImpl
getConstructor, getField, getIndexedGet, getIterator
Methods inherited from class edu.internet2.middleware.grouperClientExt.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 edu.internet2.middleware.grouperClientExt.org.apache.commons.jexl2.introspection.Uberspect
setClassLoader
-
Field Details
-
sandbox
The sandbox.
-
-
Constructor Details
-
SandboxUberspectImpl
A constructor for Sandbox uberspect.- Parameters:
runtimeLogger
- the logger to use or null to use defaulttheSandbox
- the sandbox instance to use
-
-
Method Details
-
setLoader
Resets this Uberspect class loader.- Overrides:
setLoader
in classUberspectImpl
- Parameters:
cloader
- the class loader to use
-
getConstructorMethod
Returns a class constructor wrapped in a JexlMethod.- Specified by:
getConstructorMethod
in interfaceUberspect
- Overrides:
getConstructorMethod
in classUberspectImpl
- Parameters:
ctorHandle
- a class or class nameargs
- constructor argumentsinfo
- contextual information- Returns:
- a
Constructor
-
getMethod
Returns a JexlMethod.- Specified by:
getMethod
in interfaceUberspect
- Overrides:
getMethod
in classUberspectImpl
- Parameters:
obj
- the objectmethod
- the method nameargs
- method argumentsinfo
- contextual information- Returns:
- a
JexlMethod
-
getPropertyGet
Property getter.Returns JexlPropertyGet appropos for ${bar.woogie}.
- Specified by:
getPropertyGet
in interfaceUberspect
- Overrides:
getPropertyGet
in classUberspectImpl
- Parameters:
obj
- the object to get the property fromidentifier
- property nameinfo
- contextual information- Returns:
- a
JexlPropertyGet
-
getPropertySet
Property setter.returns JelPropertySet appropos for ${foo.bar = "geir"}
.- Specified by:
getPropertySet
in interfaceUberspect
- Overrides:
getPropertySet
in classUberspectImpl
- Parameters:
obj
- the object to get the property from.identifier
- property namearg
- value to setinfo
- contextual information- Returns:
- a
JexlPropertySet
.
-