Package org.glassfish.jersey.weld.se
Class WeldRequestScope
java.lang.Object
org.glassfish.jersey.weld.se.WeldRequestScope
- All Implemented Interfaces:
AutoCloseable,ExternalRequestScope<Map<String,Object>>
@ApplicationScoped
public class WeldRequestScope
extends Object
implements ExternalRequestScope<Map<String,Object>>
Weld specific request scope to align CDI request context with Jersey.
- Author:
- Jakub Podlesak
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ThreadLocal<org.glassfish.jersey.internal.inject.InjectionManager> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()open(org.glassfish.jersey.internal.inject.InjectionManager injectionManager) voidresume(ExternalRequestContext<Map<String, Object>> ctx, org.glassfish.jersey.internal.inject.InjectionManager injectionManager) voidsuspend(ExternalRequestContext<Map<String, Object>> ctx, org.glassfish.jersey.internal.inject.InjectionManager injectionManager)
-
Field Details
-
actualInjectorManager
public static final ThreadLocal<org.glassfish.jersey.internal.inject.InjectionManager> actualInjectorManager
-
-
Constructor Details
-
WeldRequestScope
public WeldRequestScope()
-
-
Method Details
-
open
public ExternalRequestContext<Map<String,Object>> open(org.glassfish.jersey.internal.inject.InjectionManager injectionManager) - Specified by:
openin interfaceExternalRequestScope<Map<String,Object>>
-
resume
public void resume(ExternalRequestContext<Map<String, Object>> ctx, org.glassfish.jersey.internal.inject.InjectionManager injectionManager) - Specified by:
resumein interfaceExternalRequestScope<Map<String,Object>>
-
suspend
public void suspend(ExternalRequestContext<Map<String, Object>> ctx, org.glassfish.jersey.internal.inject.InjectionManager injectionManager) - Specified by:
suspendin interfaceExternalRequestScope<Map<String,Object>>
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceExternalRequestScope<Map<String,Object>>
-