public class ContextRegistry extends Object implements AutoCloseable
| Constructor and Description |
|---|
ContextRegistry() |
| Modifier and Type | Method and Description |
|---|---|
protected <T> void |
addEntry(org.glassfish.hk2.api.ActiveDescriptor key,
Object e)
Called when a new object is registered.
|
void |
close() |
boolean |
containsKey(org.glassfish.hk2.api.ActiveDescriptor key)
Validate that an object is defined within a scope.
|
void |
destroyOne(org.glassfish.hk2.api.ActiveDescriptor key) |
<T> T |
findOrCreate(org.glassfish.hk2.api.ActiveDescriptor<T> key,
org.glassfish.hk2.api.ServiceHandle<?> root)
Retrieve an object from the scope registry.
|
protected <T> void addEntry(org.glassfish.hk2.api.ActiveDescriptor key,
Object e)
public <T> T findOrCreate(org.glassfish.hk2.api.ActiveDescriptor<T> key,
org.glassfish.hk2.api.ServiceHandle<?> root)
public boolean containsKey(org.glassfish.hk2.api.ActiveDescriptor key)
public void destroyOne(org.glassfish.hk2.api.ActiveDescriptor key)
public void close()
close in interface AutoCloseableorg.glassfish.hk2.api.MultiException - In case one or more managed Disposable has thrown an exception.Copyright © 2015. All rights reserved.