@Singleton public class JsonRpcRequestScopeSingleton extends Object implements org.glassfish.hk2.api.Context<net.inveed.jsonrpc.core.annotation.JsonRpcRequestScope>
| Modifier and Type | Class and Description |
|---|---|
static class |
JsonRpcRequestScopeSingleton.Binder
Request scope injection binder.
|
static class |
JsonRpcRequestScopeSingleton.Instance |
| Constructor and Description |
|---|
JsonRpcRequestScopeSingleton() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(org.glassfish.hk2.api.ActiveDescriptor<?> descriptor) |
JsonRpcRequestScopeSingleton.Instance |
createInstance() |
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() |
JsonRpcRequestScopeSingleton.Instance |
referenceCurrent() |
void |
runInScope(Runnable task) |
void |
shutdown() |
boolean |
supportsNullCreation() |
JsonRpcRequestScopeSingleton.Instance |
suspendCurrent() |
public Class<? extends Annotation> getScope()
getScope in interface org.glassfish.hk2.api.Context<net.inveed.jsonrpc.core.annotation.JsonRpcRequestScope>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<net.inveed.jsonrpc.core.annotation.JsonRpcRequestScope>public boolean containsKey(org.glassfish.hk2.api.ActiveDescriptor<?> descriptor)
containsKey in interface org.glassfish.hk2.api.Context<net.inveed.jsonrpc.core.annotation.JsonRpcRequestScope>public boolean supportsNullCreation()
supportsNullCreation in interface org.glassfish.hk2.api.Context<net.inveed.jsonrpc.core.annotation.JsonRpcRequestScope>public boolean isActive()
isActive in interface org.glassfish.hk2.api.Context<net.inveed.jsonrpc.core.annotation.JsonRpcRequestScope>public void destroyOne(org.glassfish.hk2.api.ActiveDescriptor<?> descriptor)
destroyOne in interface org.glassfish.hk2.api.Context<net.inveed.jsonrpc.core.annotation.JsonRpcRequestScope>public void shutdown()
shutdown in interface org.glassfish.hk2.api.Context<net.inveed.jsonrpc.core.annotation.JsonRpcRequestScope>public void runInScope(Runnable task)
public JsonRpcRequestScopeSingleton.Instance referenceCurrent() throws IllegalStateException
IllegalStateExceptionpublic JsonRpcRequestScopeSingleton.Instance suspendCurrent()
public JsonRpcRequestScopeSingleton.Instance createInstance()
Copyright © 2018. All rights reserved.