org.dentaku.services.container
Class ContainerManager
java.lang.Object
org.dentaku.services.container.ContainerManager
- public class ContainerManager
- extends java.lang.Object
This is all kind of wacked out, but basically it's that way to make it testable with external container insertion
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
container
protected DentakuPlexusContainer container
configurationResources
protected java.util.List configurationResources
ContainerManager
public ContainerManager()
getInstance
public static ContainerManager getInstance()
throws ContainerException
- Return a reference to the enclosing plexus container. If this is not possible, throw a
ContainerException.
- Returns:
- PlexusContainer -- the container that Dentaku is running from.
- Throws:
ContainerException - if we cannot find a reference to the container.
setInstance
public static void setInstance(ContainerManager instance)
getContainer
public DentakuPlexusContainer getContainer()
setup
public void setup()
throws ContainerException
- Build a new plexus container and put it into JNDI
- Throws:
ContainerException
setup
public void setup(DentakuPlexusContainer c)
add
public void add(java.io.InputStreamReader configurationResource)
lookup
public java.lang.Object lookup(java.lang.String key)
throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException
dispose
public void dispose()
getContainerManager
public static ContainerManager getContainerManager(java.io.InputStream configurationStream)
throws DentakuException
- Throws:
DentakuException
disposeContainerManager
public void disposeContainerManager()
Copyright © -2004 . All Rights Reserved.