public class DelegateContext<T extends Annotation> extends Object implements org.glassfish.hk2.api.Context<T>
| Constructor and Description |
|---|
DelegateContext(Class<T> annotation,
javax.inject.Provider<ContextRegistry> registryProvider,
boolean supportNullCreation) |
| 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) |
protected javax.inject.Provider<ContextRegistry> |
getRegistryProvider() |
Class<T> |
getScope() |
boolean |
isActive() |
void |
shutdown() |
boolean |
supportsNullCreation() |
public DelegateContext(Class<T> annotation, javax.inject.Provider<ContextRegistry> registryProvider, boolean supportNullCreation)
protected javax.inject.Provider<ContextRegistry> getRegistryProvider()
public Class<T> getScope()
getScope in interface org.glassfish.hk2.api.Context<T extends Annotation>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<T extends Annotation>public boolean containsKey(org.glassfish.hk2.api.ActiveDescriptor<?> descriptor)
containsKey in interface org.glassfish.hk2.api.Context<T extends Annotation>public void destroyOne(org.glassfish.hk2.api.ActiveDescriptor<?> descriptor)
destroyOne in interface org.glassfish.hk2.api.Context<T extends Annotation>public boolean supportsNullCreation()
supportsNullCreation in interface org.glassfish.hk2.api.Context<T extends Annotation>public boolean isActive()
isActive in interface org.glassfish.hk2.api.Context<T extends Annotation>public void shutdown()
shutdown in interface org.glassfish.hk2.api.Context<T extends Annotation>Copyright © 2016. All rights reserved.