@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)
ExternalRequestScope
open
in interface ExternalRequestScope<Map<String,Object>>
serviceLocator
- HK2 service locatorpublic void resume(ExternalRequestContext<Map<String,Object>> ctx, org.glassfish.hk2.api.ServiceLocator serviceLocator)
ExternalRequestScope
resume
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)
ExternalRequestScope
suspend
in interface ExternalRequestScope<Map<String,Object>>
ctx
- external request contextserviceLocator
- HK2 service locatorpublic void close()
ExternalRequestScope
close
in interface AutoCloseable
close
in interface ExternalRequestScope<Map<String,Object>>
Copyright © 2007-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.