Top Description Fields Constructors Methods
org.apache.commons.jexl2.introspection

public Class SandboxUberspectImpl

extends UberspectImpl
Class Inheritance
Imports
org.apache.commons.jexl2.JexlInfo, org.apache.commons.logging.Log

An uberspect that controls usage of properties, methods and contructors through a sandbox.
Since
2.1

Field Summary

Modifier and TypeField and Description
protected final Sandbox
sandbox

The sandbox.

Inherited from org.apache.commons.jexl2.introspection.UberspectImpl:
TRY_FAILED

Constructor Summary

AccessConstructor and Description
public
SandboxUberspectImpl(Log
the logger to use or null to use default
runtimeLogger
,
Sandbox
the sandbox instance to use
theSandbox
)

A constructor for Sandbox uberspect.

Method Summary

Modifier and TypeMethod and Description
public JexlMethod
getConstructorMethod(Object
a class or class name
ctorHandle
,
Object[]
constructor arguments
args
,
JexlInfo
contextual information
info
)

Overrides org.apache.commons.jexl2.introspection.UberspectImpl.getConstructorMethod.

Implements org.apache.commons.jexl2.introspection.Uberspect.getConstructorMethod.

Returns a class constructor wrapped in a JexlMethod.
public JexlMethod
getMethod(Object
the object
obj
,
String
the method name
method
,
Object[]
method arguments
args
,
JexlInfo
contextual information
info
)

Overrides org.apache.commons.jexl2.introspection.UberspectImpl.getMethod.

Implements org.apache.commons.jexl2.introspection.Uberspect.getMethod.

Returns a JexlMethod.
public JexlPropertyGet
getPropertyGet(Object
the object to get the property from
obj
,
Object
property name
identifier
,
JexlInfo
contextual information
info
)

Overrides org.apache.commons.jexl2.introspection.UberspectImpl.getPropertyGet.

Implements org.apache.commons.jexl2.introspection.Uberspect.getPropertyGet.

Property getter.
public JexlPropertySet
getPropertySet(final Object
the object to get the property from.
obj
,
final Object
property name
identifier
,
Object
value to set
arg
,
JexlInfo
contextual information
info
)

Overrides org.apache.commons.jexl2.introspection.UberspectImpl.getPropertySet.

Implements org.apache.commons.jexl2.introspection.Uberspect.getPropertySet.

Property setter.
public void
setLoader(ClassLoader
the class loader to use
cloader
)

Overrides org.apache.commons.jexl2.introspection.UberspectImpl.setLoader.

Resets this Uberspect class loader.
Inherited from org.apache.commons.jexl2.introspection.UberspectImpl:
getConstructorgetFieldgetIndexedGetgetIterator

Field Detail

sandboxback to summary
protected final Sandbox sandbox

The sandbox.

Constructor Detail

SandboxUberspectImplback to summary
public SandboxUberspectImpl(Log runtimeLogger, Sandbox theSandbox)

A constructor for Sandbox uberspect.

Parameters
runtimeLogger:Log

the logger to use or null to use default

theSandbox:Sandbox

the sandbox instance to use

Method Detail

getConstructorMethodback to summary
public JexlMethod getConstructorMethod(Object ctorHandle, Object[] args, JexlInfo info)

Overrides org.apache.commons.jexl2.introspection.UberspectImpl.getConstructorMethod.

Implements org.apache.commons.jexl2.introspection.Uberspect.getConstructorMethod.

Doc from org.apache.commons.jexl2.introspection.UberspectImpl.getConstructorMethod.

Returns a class constructor wrapped in a JexlMethod.

Parameters
ctorHandle:Object

Doc from org.apache.commons.jexl2.introspection.Uberspect.getConstructorMethod.

a class or class name

args:Object[]

Doc from org.apache.commons.jexl2.introspection.Uberspect.getConstructorMethod.

constructor arguments

info:JexlInfo

Doc from org.apache.commons.jexl2.introspection.Uberspect.getConstructorMethod.

contextual information

Returns:JexlMethod

Doc from org.apache.commons.jexl2.introspection.Uberspect.getConstructorMethod.

a Constructor

Annotations
@Override
getMethodback to summary
public JexlMethod getMethod(Object obj, String method, Object[] args, JexlInfo info)

Overrides org.apache.commons.jexl2.introspection.UberspectImpl.getMethod.

Implements org.apache.commons.jexl2.introspection.Uberspect.getMethod.

Doc from org.apache.commons.jexl2.introspection.UberspectImpl.getMethod.

Returns a JexlMethod.

Parameters
obj:Object

Doc from org.apache.commons.jexl2.introspection.Uberspect.getMethod.

the object

method:String

Doc from org.apache.commons.jexl2.introspection.Uberspect.getMethod.

the method name

args:Object[]

Doc from org.apache.commons.jexl2.introspection.Uberspect.getMethod.

method arguments

info:JexlInfo

Doc from org.apache.commons.jexl2.introspection.Uberspect.getMethod.

contextual information

Returns:JexlMethod

Doc from org.apache.commons.jexl2.introspection.Uberspect.getMethod.

a JexlMethod

Annotations
@Override
getPropertyGetback to summary
public JexlPropertyGet getPropertyGet(Object obj, Object identifier, JexlInfo info)

Overrides org.apache.commons.jexl2.introspection.UberspectImpl.getPropertyGet.

Implements org.apache.commons.jexl2.introspection.Uberspect.getPropertyGet.

Doc from org.apache.commons.jexl2.introspection.UberspectImpl.getPropertyGet.

Property getter.

Returns JexlPropertyGet appropos for ${bar.woogie}.

Parameters
obj:Object

Doc from org.apache.commons.jexl2.introspection.Uberspect.getPropertyGet.

the object to get the property from

identifier:Object

Doc from org.apache.commons.jexl2.introspection.Uberspect.getPropertyGet.

property name

info:JexlInfo

Doc from org.apache.commons.jexl2.introspection.Uberspect.getPropertyGet.

contextual information

Returns:JexlPropertyGet

Doc from org.apache.commons.jexl2.introspection.Uberspect.getPropertyGet.

a JexlPropertyGet

Annotations
@Override
getPropertySetback to summary
public JexlPropertySet getPropertySet(final Object obj, final Object identifier, Object arg, JexlInfo info)

Overrides org.apache.commons.jexl2.introspection.UberspectImpl.getPropertySet.

Implements org.apache.commons.jexl2.introspection.Uberspect.getPropertySet.

Doc from org.apache.commons.jexl2.introspection.UberspectImpl.getPropertySet.

Property setter.

returns JelPropertySet appropos for ${foo.bar = "geir"}

.
Parameters
obj:Object

Doc from org.apache.commons.jexl2.introspection.Uberspect.getPropertySet.

the object to get the property from.

identifier:Object

Doc from org.apache.commons.jexl2.introspection.Uberspect.getPropertySet.

property name

arg:Object

Doc from org.apache.commons.jexl2.introspection.Uberspect.getPropertySet.

value to set

info:JexlInfo

Doc from org.apache.commons.jexl2.introspection.Uberspect.getPropertySet.

contextual information

Returns:JexlPropertySet

Doc from org.apache.commons.jexl2.introspection.Uberspect.getPropertySet.

a JexlPropertySet.

Annotations
@Override
setLoaderback to summary
public void setLoader(ClassLoader cloader)

Overrides org.apache.commons.jexl2.introspection.UberspectImpl.setLoader.

Doc from org.apache.commons.jexl2.introspection.UberspectImpl.setLoader.

Resets this Uberspect class loader.

Parameters
cloader:ClassLoader

the class loader to use

Annotations
@Override