Package org.glassfish.internal.api
Interface JavaEEContextUtil.Instance
-
- All Superinterfaces:
ContextProducer.Instance
,Serializable
- All Known Implementing Classes:
JavaEEContextUtilImpl.InstanceImpl
- Enclosing interface:
- JavaEEContextUtil
public static interface JavaEEContextUtil.Instance extends ContextProducer.Instance
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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 contextJavaEEContextUtil.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 contextJavaEEContextUtil.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-
Methods inherited from interface org.glassfish.internal.api.ContextProducer.Instance
clearInstanceInvocation, getInstanceComponentId, isEmpty, isLoaded
-
-
-
-
Method Detail
-
pushContext
JavaEEContextUtil.Context pushContext()
Description copied from interface:ContextProducer.Instance
pushes Java EE invocation context onto the invocation stack use try-with-resources to pop the context no-op if non-running context- Specified by:
pushContext
in interfaceContextProducer.Instance
- Returns:
- the new context that was created
-
pushRequestContext
JavaEEContextUtil.Context pushRequestContext()
Description copied from interface:ContextProducer.Instance
pushes invocation context onto the stack Also creates Request scope use try-with-resources to pop the context no-op if non-running context- Specified by:
pushRequestContext
in interfaceContextProducer.Instance
- Returns:
- new context that was created
-
setApplicationClassLoader
JavaEEContextUtil.Context setApplicationClassLoader()
Description copied from interface:ContextProducer.Instance
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- Specified by:
setApplicationClassLoader
in interfaceContextProducer.Instance
- Returns:
- context so class loader can be reset
-
-