public static interface ContextProducer.Instance extends Serializable
| 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.
|
ContextProducer.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
|
ContextProducer.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
|
ContextProducer.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
|
ContextProducer.Context pushContext()
ContextProducer.Context pushRequestContext()
ContextProducer.Context setApplicationClassLoader()
String getInstanceComponentId()
boolean isLoaded()
boolean isEmpty()
void clearInstanceInvocation()
Copyright © 2021. All rights reserved.