
public abstract class ContainerFactory extends Object
Container singleton.| Constructor and Description |
|---|
ContainerFactory() |
| Modifier and Type | Method and Description |
|---|---|
static Container |
getContainer()
Gets the
Container singleton. |
static Container |
newContainer()
Creates a new instance of the
Container singleton implementation. |
public ContainerFactory()
public static Container getContainer()
Container singleton.
By default this class will instantiate a new container and hold it in
a static class variable as the singleton to return for other calls. This
behaviour can be changed by setting a system property with key
org.jdtaus.core.container.ContainerFactory to the name of a
class defining a public static Container getContainer() method
returning the singleton instance of Container.
Container instance.ContainerError - for unrecoverable container errors.newContainer()public static Container newContainer()
Container singleton implementation.
The container implementation to be used can be controlled via a system
property with key org.jdtaus.core.container.Container set to a
class name to be loaded as the container implementation.
This method should be used by getContainer() implementors to
retrieve a new Container instance.
Container
implementation.ContainerError - for unrecoverable container errors.Copyright © 2005-2012 jDTAUS. All Rights Reserved.