@Singleton public class SingletonContext extends java.lang.Object implements Context<Singleton>
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(ActiveDescriptor<?> descriptor) |
void |
destroyOne(ActiveDescriptor<?> one)
Release one system descriptor
|
<T> T |
findOrCreate(ActiveDescriptor<T> activeDescriptor,
ServiceHandle<?> root) |
java.lang.Class<? extends java.lang.annotation.Annotation> |
getScope() |
boolean |
isActive() |
void |
shutdown() |
boolean |
supportsNullCreation() |
public java.lang.Class<? extends java.lang.annotation.Annotation> getScope()
public <T> T findOrCreate(ActiveDescriptor<T> activeDescriptor, ServiceHandle<?> root)
findOrCreate in interface Context<Singleton>public boolean containsKey(ActiveDescriptor<?> descriptor)
containsKey in interface Context<Singleton>public boolean supportsNullCreation()
supportsNullCreation in interface Context<Singleton>public void destroyOne(ActiveDescriptor<?> one)
destroyOne in interface Context<Singleton>one - The descriptor to release (may not be null). Further, the cache MUST be setCopyright © 2013 Oracle Corporation. All Rights Reserved.