public interface WrapperFactory
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FESI_LANG
Constant WrapperFactory classes can use to check for use of the FESI
engine.
|
static java.lang.String |
IBMJS_LANG
Constant WrapperFactory classes can use to check for use of the IBMJS
engine.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getObjectToStore(java.lang.Object obj)
Get the object that should be returned on a lookup call on
ObjectWrapperManager.
|
ObjectWrapper |
wrap(java.lang.Object obj,
java.lang.String lang,
java.lang.Object param)
Correctly wrap the given object to use in the scripting environment.
|
static final java.lang.String IBMJS_LANG
static final java.lang.String FESI_LANG
ObjectWrapper wrap(java.lang.Object obj, java.lang.String lang, java.lang.Object param)
obj - The Object to wrap.lang - The scripting language we are using. This is used to choose a
specific wrapper if the wrapper must vary depending on
scripting language.param - Some wrapper classes need parameters to correctly wrap
objects. param is how this information is passed. param can be
null if no extra information is necessary.java.lang.Object getObjectToStore(java.lang.Object obj)
obj - The same object that was passed wrap.