org.jvnet.hk2.internal
Class SingletonContext

java.lang.Object
  extended by org.jvnet.hk2.internal.SingletonContext
All Implemented Interfaces:
Context<Singleton>

@Singleton
public class SingletonContext
extends java.lang.Object
implements Context<Singleton>

Author:
jwells

Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getScope

public java.lang.Class<? extends java.lang.annotation.Annotation> getScope()
Specified by:
getScope in interface Context<Singleton>

findOrCreate

public <T> T findOrCreate(ActiveDescriptor<T> activeDescriptor,
                          ServiceHandle<?> root)
Specified by:
findOrCreate in interface Context<Singleton>

containsKey

public boolean containsKey(ActiveDescriptor<?> descriptor)
Specified by:
containsKey in interface Context<Singleton>

isActive

public boolean isActive()
Specified by:
isActive in interface Context<Singleton>

supportsNullCreation

public boolean supportsNullCreation()
Specified by:
supportsNullCreation in interface Context<Singleton>

shutdown

public void shutdown()
Specified by:
shutdown in interface Context<Singleton>

destroyOne

public void destroyOne(ActiveDescriptor<?> one)
Release one system descriptor

Specified by:
destroyOne in interface Context<Singleton>
Parameters:
one - The descriptor to release (may not be null). Further, the cache MUST be set


Copyright © 2013 Oracle Corporation. All Rights Reserved.