org.yajul.micro
Class SingletonManager

java.lang.Object
  extended by org.yajul.micro.SingletonManager

public class SingletonManager
extends java.lang.Object

One singleton to rule them all. This is actually a single level hierarchy of micro-containers. The parent contains all the YAJUL singletons. The
User: josh Date: Mar 5, 2008 Time: 10:37:22 AM


Field Summary
static java.lang.String BOOTSTRAP_RESOURCE_NAME
          The resource that the bootstrapper looks for.
 
Method Summary
static MicroContainer defaultContainer()
           
 MicroContainer getDefaultContainer()
           
static
<T> T
getDefaultSingleton(java.lang.Class<T> componentType)
           
static SingletonManager getInstance()
           
static org.picocontainer.PicoContainer getSingletonContainer(java.lang.String context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BOOTSTRAP_RESOURCE_NAME

public static final java.lang.String BOOTSTRAP_RESOURCE_NAME
The resource that the bootstrapper looks for.

See Also:
Constant Field Values
Method Detail

getInstance

public static SingletonManager getInstance()

getSingletonContainer

public static org.picocontainer.PicoContainer getSingletonContainer(java.lang.String context)

getDefaultSingleton

public static <T> T getDefaultSingleton(java.lang.Class<T> componentType)

defaultContainer

public static MicroContainer defaultContainer()

getDefaultContainer

public MicroContainer getDefaultContainer()


Copyright © 2008. All Rights Reserved.