public class JavaEEContextUtilImpl.InstanceImpl extends Object implements JavaEEContextUtil.Instance
| Modifier and Type | Method and Description |
|---|---|
void |
clearInstanceInvocation()
remove cached invocation from this instance, in case the
underlying app unloaded but component ID remains, just in case the
app is reloaded
|
String |
getInstanceComponentId() |
boolean |
isEmpty() |
boolean |
isLoaded()
This is different from class loaded, as there are some situations
where class is loaded but initialization is not complete, such as CDI
initializations, extensions start, etc.
|
JavaEEContextUtil.Context |
pushContext()
pushes Java EE invocation context onto the invocation stack use
try-with-resources to pop the context
no-op if non-running context
|
JavaEEContextUtil.Context |
pushRequestContext()
pushes invocation context onto the stack Also creates Request scope
use try-with-resources to pop the context
no-op if non-running context
|
JavaEEContextUtil.Context |
setApplicationClassLoader()
set context class loader by component id of this instance
for empty or unloaded component, class loader remains unset and the
context is a no-op (no re-set gets done) so it's a no-op
|
public JavaEEContextUtil.Context pushContext()
ContextProducer.InstancepushContext in interface ContextProducer.InstancepushContext in interface JavaEEContextUtil.Instancepublic JavaEEContextUtil.Context pushRequestContext()
ContextProducer.InstancepushRequestContext in interface ContextProducer.InstancepushRequestContext in interface JavaEEContextUtil.Instancepublic JavaEEContextUtil.Context setApplicationClassLoader()
ContextProducer.InstancesetApplicationClassLoader in interface ContextProducer.InstancesetApplicationClassLoader in interface JavaEEContextUtil.Instancepublic String getInstanceComponentId()
getInstanceComponentId in interface ContextProducer.Instancepublic boolean isLoaded()
ContextProducer.InstanceisLoaded in interface ContextProducer.Instancepublic boolean isEmpty()
isEmpty in interface ContextProducer.Instancepublic void clearInstanceInvocation()
ContextProducer.InstanceclearInstanceInvocation in interface ContextProducer.InstanceCopyright © 2021. All rights reserved.