@Service @PerLookup public class JavaEEContextUtilImpl extends Object implements JavaEEContextUtil, Serializable
JavaEEContextUtil.Closeable, JavaEEContextUtil.Context| Constructor and Description |
|---|
JavaEEContextUtilImpl() |
| Modifier and Type | Method and Description |
|---|---|
String |
getInstanceComponentId() |
ClassLoader |
getInvocationClassLoader() |
String |
getInvocationComponentId() |
protected ServerContext |
getServerContext() |
JavaEEContextUtil.Context |
pushContext()
pushes Java EE invocation context
|
JavaEEContextUtil.Context |
pushRequestContext()
pushes invocation context onto the stack
Also creates Request scope
|
JavaEEContextUtil.Context |
setApplicationClassLoader()
set context class loader by component ID
|
void |
setEmptyInvocation()
Set a valid component invocation that's empty,
i.e.
|
JavaEEContextUtil |
setInstanceComponentId(String componentId)
sets component ID for this instance and re-generates the invocation based on it
|
void |
setInstanceContext()
Sets the state of this instance from current invocation context
|
protected ServerContext getServerContext()
public String getInstanceComponentId()
getInstanceComponentId in interface JavaEEContextUtilpublic JavaEEContextUtil.Context pushContext()
pushContext in interface JavaEEContextUtilpublic JavaEEContextUtil.Context pushRequestContext()
pushRequestContext in interface JavaEEContextUtilpublic JavaEEContextUtil.Context setApplicationClassLoader()
setApplicationClassLoader in interface JavaEEContextUtilpublic ClassLoader getInvocationClassLoader()
getInvocationClassLoader in interface JavaEEContextUtilpublic void setInstanceContext()
JavaEEContextUtilsetInstanceContext in interface JavaEEContextUtilpublic void setEmptyInvocation()
JavaEEContextUtilsetEmptyInvocation in interface JavaEEContextUtilpublic String getInvocationComponentId()
getInvocationComponentId in interface JavaEEContextUtilpublic JavaEEContextUtil setInstanceComponentId(String componentId)
JavaEEContextUtilsetInstanceComponentId in interface JavaEEContextUtilCopyright © 2019. All rights reserved.