@Service public class JavaEEContextUtilImpl extends Object implements JavaEEContextUtil, Serializable
| Modifier and Type | Class and Description |
|---|---|
class |
JavaEEContextUtilImpl.InstanceImpl |
JavaEEContextUtil.Context, JavaEEContextUtil.InstanceContextProducer.Closeable| Constructor and Description |
|---|
JavaEEContextUtilImpl() |
| Modifier and Type | Method and Description |
|---|---|
JavaEEContextUtil.Instance |
currentInvocation()
captures current invocation and returns it as an instance
|
JavaEEContextUtil.Instance |
empty()
Creates an empty instance, i.e.
|
JavaEEContextUtil.Instance |
fromComponentId(String componentId) |
ClassLoader |
getInvocationClassLoader() |
String |
getInvocationComponentId() |
boolean |
isInvocationLoaded()
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.
|
public JavaEEContextUtil.Instance empty()
ContextProducerempty in interface ContextProducerempty in interface JavaEEContextUtilpublic JavaEEContextUtil.Instance currentInvocation()
ContextProducercurrentInvocation in interface ContextProducercurrentInvocation in interface JavaEEContextUtilpublic JavaEEContextUtil.Instance fromComponentId(String componentId) throws IllegalArgumentException
fromComponentId in interface JavaEEContextUtilcomponentId - component id for this instance, non-nullIllegalArgumentExceptionpublic ClassLoader getInvocationClassLoader()
getInvocationClassLoader in interface ContextProducerpublic String getInvocationComponentId()
getInvocationComponentId in interface ContextProducerpublic boolean isInvocationLoaded()
ContextProducerisInvocationLoaded in interface ContextProducerCopyright © 2021. All rights reserved.