@ApplicationScoped public class WeldRequestScope extends Object implements ExternalRequestScope<Map<String,Object>>
Modifier and Type | Field and Description |
---|---|
static ThreadLocal<org.glassfish.jersey.internal.inject.InjectionManager> |
actualInjectorManager |
Constructor and Description |
---|
WeldRequestScope() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Finish the actual request.
|
ExternalRequestContext<Map<String,Object>> |
open(org.glassfish.jersey.internal.inject.InjectionManager injectionManager)
Invoked when a new request gets started.
|
void |
resume(ExternalRequestContext<Map<String,Object>> ctx,
org.glassfish.jersey.internal.inject.InjectionManager injectionManager)
Resume request associated with provided context.
|
void |
suspend(ExternalRequestContext<Map<String,Object>> ctx,
org.glassfish.jersey.internal.inject.InjectionManager injectionManager)
Suspend request associated with provided context.
|
public static final ThreadLocal<org.glassfish.jersey.internal.inject.InjectionManager> actualInjectorManager
public ExternalRequestContext<Map<String,Object>> open(org.glassfish.jersey.internal.inject.InjectionManager injectionManager)
ExternalRequestScope
open
in interface ExternalRequestScope<Map<String,Object>>
injectionManager
- DI injection managerpublic void resume(ExternalRequestContext<Map<String,Object>> ctx, org.glassfish.jersey.internal.inject.InjectionManager injectionManager)
ExternalRequestScope
resume
in interface ExternalRequestScope<Map<String,Object>>
ctx
- external request contextinjectionManager
- DI injection managerpublic void suspend(ExternalRequestContext<Map<String,Object>> ctx, org.glassfish.jersey.internal.inject.InjectionManager injectionManager)
ExternalRequestScope
suspend
in interface ExternalRequestScope<Map<String,Object>>
ctx
- external request contextinjectionManager
- DI injection managerpublic void close()
ExternalRequestScope
close
in interface AutoCloseable
close
in interface ExternalRequestScope<Map<String,Object>>
Copyright © 2007-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.