@Contract
public interface JavaEEContextUtil
| Modifier and Type | Interface and Description |
|---|---|
static interface |
JavaEEContextUtil.Closeable |
static interface |
JavaEEContextUtil.Context |
| Modifier and Type | Method and Description |
|---|---|
String |
getInstanceComponentId() |
ClassLoader |
getInvocationClassLoader() |
String |
getInvocationComponentId() |
JavaEEContextUtil.Context |
pushContext()
pushes Java EE invocation context onto the invocation stack
use try-with-resources to pop the context
|
JavaEEContextUtil.Context |
pushRequestContext()
pushes invocation context onto the stack
Also creates Request scope
use try-with-resources to pop the context
|
JavaEEContextUtil.Context |
setApplicationClassLoader()
set context class loader by internal state of this instance
|
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
|
JavaEEContextUtil.Context pushContext()
JavaEEContextUtil.Context pushRequestContext()
JavaEEContextUtil.Context setApplicationClassLoader()
void setInstanceContext()
JavaEEContextUtil setInstanceComponentId(String componentId)
componentId - ClassLoader getInvocationClassLoader()
String getInvocationComponentId()
String getInstanceComponentId()
void setEmptyInvocation()
Copyright © 2019. All rights reserved.