@ApplicationScoped public class WeldRequestScope extends Object implements ExternalRequestScope<Map<String,Object>>
| Modifier and Type | Field and Description |
|---|---|
static ThreadLocal<org.glassfish.hk2.api.ServiceLocator> |
actualServiceLocator |
| Constructor and Description |
|---|
WeldRequestScope() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Finish the actual request.
|
ExternalRequestContext<Map<String,Object>> |
open(org.glassfish.hk2.api.ServiceLocator serviceLocator)
Invoked when a new request gets started.
|
void |
resume(ExternalRequestContext<Map<String,Object>> ctx,
org.glassfish.hk2.api.ServiceLocator serviceLocator)
Resume request associated with provided context.
|
void |
suspend(ExternalRequestContext<Map<String,Object>> ctx,
org.glassfish.hk2.api.ServiceLocator serviceLocator)
Suspend request associated with provided context.
|
public static final ThreadLocal<org.glassfish.hk2.api.ServiceLocator> actualServiceLocator
public ExternalRequestContext<Map<String,Object>> open(org.glassfish.hk2.api.ServiceLocator serviceLocator)
ExternalRequestScopeopen in interface ExternalRequestScope<Map<String,Object>>serviceLocator - HK2 service locatorpublic void resume(ExternalRequestContext<Map<String,Object>> ctx, org.glassfish.hk2.api.ServiceLocator serviceLocator)
ExternalRequestScoperesume in interface ExternalRequestScope<Map<String,Object>>ctx - external request contextserviceLocator - HK2 service locatorpublic void suspend(ExternalRequestContext<Map<String,Object>> ctx, org.glassfish.hk2.api.ServiceLocator serviceLocator)
ExternalRequestScopesuspend in interface ExternalRequestScope<Map<String,Object>>ctx - external request contextserviceLocator - HK2 service locatorpublic void close()
ExternalRequestScopeclose in interface AutoCloseableclose in interface ExternalRequestScope<Map<String,Object>>Copyright © 2007-2016, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.