public class ThreadContextFacade extends Object
| Constructor and Description |
|---|
ThreadContextFacade() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
get(String key)
Get a context scripting object.
|
static Object |
getProxy(String key)
Get a proxy scripting object.
|
static boolean |
isValid()
Check whether the facade is valid.
|
static void |
remove(String key)
Remove a context scripting object.
|
static void |
removeProxy(String key)
Remove a proxy scripting object.
|
static String |
set(Object value)
Set a context scripting object.
|
static void |
set(String key,
Object value)
Set a context scripting object.
|
static String |
setProxy(Object value)
Set a proxy scripting object.
|
static void |
setProxy(String key,
Object value)
Set a proxy scripting object.
|
static void |
setUp()
Initializes the context.
|
static void |
tearDown()
IMPORTANT! This have to be added at the finally block to clean up objects after the execution of the service.
|
public static final void setUp()
throws ContextException
ContextException - in case of an errorpublic static final void tearDown()
throws ContextException
ContextException - in case of an errorpublic static final Object get(String key) throws ContextException
key - the keyContextException - in case of an errorpublic static final String set(Object value) throws ContextException
value - the valueContextException - in case of an errorpublic static final void set(String key, Object value) throws ContextException
key - the keyvalue - the valueContextException - in case of an errorpublic static final void remove(String key) throws ContextException
key - the keyContextException - in case of an errorpublic static boolean isValid()
public static final Object getProxy(String key) throws ContextException
key - the keyContextException - in case of an errorpublic static final String setProxy(Object value) throws ContextException
value - the valueContextException - in case of an errorpublic static final void setProxy(String key, Object value) throws ContextException
key - the keyvalue - the valueContextException - in case of an errorpublic static final void removeProxy(String key) throws ContextException
key - the keyContextException - in case of an errorCopyright © 2010–2018 Eclipse Foundation. All rights reserved.