public class DefaultContextsService extends AbstractContextsService
| Constructor and Description |
|---|
DefaultContextsService() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy(Object destroyObject)
Destroys container contexts service.
|
void |
endContext(Class<? extends Annotation> scopeType,
Object endParameters)
Ends the context with the given scope type.
|
javax.enterprise.context.spi.Context |
getCurrentContext(Class<? extends Annotation> scopeType)
Gets current context with given scope type with
respect to the current thread of execution.
|
void |
startContext(Class<? extends Annotation> scopeType,
Object startParameter)
Starts the context with the given scope type.
|
boolean |
supportsContext(Class<? extends Annotation> scopeType)
If container supports the given scope type it returns
true, otherwise it return false.
|
activateContext, deActivateContext, initpublic void endContext(Class<? extends Annotation> scopeType, Object endParameters)
endContext in interface ContextsServiceendContext in class AbstractContextsServicescopeType - scope typeendParameters - any end parameterpublic javax.enterprise.context.spi.Context getCurrentContext(Class<? extends Annotation> scopeType)
If there is not current context, it returns null.
getCurrentContext in interface ContextsServicegetCurrentContext in class AbstractContextsServicescopeType - context scope typepublic void startContext(Class<? extends Annotation> scopeType, Object startParameter) throws javax.enterprise.context.ContextException
startContext in interface ContextsServicestartContext in class AbstractContextsServicescopeType - scope typestartParameter - any parameterjavax.enterprise.context.ContextException - if any exception thrown by starting context,
it is wrapped inside ContextException and thrown.public boolean supportsContext(Class<? extends Annotation> scopeType)
supportsContext in interface ContextsServicesupportsContext in class AbstractContextsServicescopeType - scope typepublic void destroy(Object destroyObject)
ContextsServicedestroy in interface ContextsServicedestroy in class AbstractContextsServicedestroyObject - any destroy parameterCopyright © 2008–2022 The Apache Software Foundation. All rights reserved.