org.codehaus.plexus.component.manager
Class SingletonComponentManager<T>
java.lang.Object
org.codehaus.plexus.component.manager.AbstractComponentManager<T>
org.codehaus.plexus.component.manager.SingletonComponentManager<T>
- All Implemented Interfaces:
- ComponentManager<T>
public class SingletonComponentManager<T>
- extends AbstractComponentManager<T>
This ensures a component is only used as a singleton, and is only shutdown when the container
shuts down.
- Author:
- Jason van Zyl
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SingletonComponentManager
public SingletonComponentManager(MutablePlexusContainer container,
LifecycleHandler lifecycleHandler,
ComponentDescriptor<T> componentDescriptor)
dispose
public void dispose()
throws ComponentLifecycleException
- Throws:
ComponentLifecycleException
getComponent
public T getComponent()
throws ComponentInstantiationException,
ComponentLifecycleException
- Throws:
ComponentInstantiationException
ComponentLifecycleException
release
public void release(java.lang.Object component)
throws ComponentLifecycleException
- Throws:
ComponentLifecycleException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2001-2009 Codehaus. All Rights Reserved.