@Singleton public class RequestContext extends Object implements org.glassfish.hk2.api.Context<org.glassfish.jersey.process.internal.RequestScoped>
RequestScope
and provide request-scoped descriptors to HK2 DI provider to create or
destroy instances.Modifier and Type | Class and Description |
---|---|
static class |
RequestContext.Binder
Request scope injection binder.
|
Constructor and Description |
---|
RequestContext(org.glassfish.jersey.process.internal.RequestScope requestScope) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(org.glassfish.hk2.api.ActiveDescriptor<?> descriptor) |
void |
destroyOne(org.glassfish.hk2.api.ActiveDescriptor<?> descriptor) |
<U> U |
findOrCreate(org.glassfish.hk2.api.ActiveDescriptor<U> activeDescriptor,
org.glassfish.hk2.api.ServiceHandle<?> root) |
Class<? extends Annotation> |
getScope() |
boolean |
isActive() |
void |
shutdown() |
boolean |
supportsNullCreation() |
@Inject public RequestContext(org.glassfish.jersey.process.internal.RequestScope requestScope)
public Class<? extends Annotation> getScope()
getScope
in interface org.glassfish.hk2.api.Context<org.glassfish.jersey.process.internal.RequestScoped>
public <U> U findOrCreate(org.glassfish.hk2.api.ActiveDescriptor<U> activeDescriptor, org.glassfish.hk2.api.ServiceHandle<?> root)
findOrCreate
in interface org.glassfish.hk2.api.Context<org.glassfish.jersey.process.internal.RequestScoped>
public boolean containsKey(org.glassfish.hk2.api.ActiveDescriptor<?> descriptor)
containsKey
in interface org.glassfish.hk2.api.Context<org.glassfish.jersey.process.internal.RequestScoped>
public boolean supportsNullCreation()
supportsNullCreation
in interface org.glassfish.hk2.api.Context<org.glassfish.jersey.process.internal.RequestScoped>
public boolean isActive()
isActive
in interface org.glassfish.hk2.api.Context<org.glassfish.jersey.process.internal.RequestScoped>
public void destroyOne(org.glassfish.hk2.api.ActiveDescriptor<?> descriptor)
destroyOne
in interface org.glassfish.hk2.api.Context<org.glassfish.jersey.process.internal.RequestScoped>
public void shutdown()
shutdown
in interface org.glassfish.hk2.api.Context<org.glassfish.jersey.process.internal.RequestScoped>
Copyright © 2007-2020, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.