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 org.codehaus.plexus.component.manager.AbstractComponentManager |
connected, createComponentInstance, decrementConnectionCount, dissociateComponentRealm, endComponentLifecycle, getComponentDescriptor, getConnections, getContainer, getLifecycleHandler, getLogger, getRealm, getRole, getRoleHint, getStartId, getType, incrementConnectionCount, start |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SingletonComponentManager
public SingletonComponentManager(MutablePlexusContainer container,
LifecycleHandler lifecycleHandler,
ComponentDescriptor<T> componentDescriptor,
java.lang.String role,
java.lang.String roleHint)
release
public void release(java.lang.Object component)
throws ComponentLifecycleException
- Throws:
ComponentLifecycleException
dispose
public void dispose()
throws ComponentLifecycleException
- Throws:
ComponentLifecycleException
getComponent
public T getComponent()
throws ComponentInstantiationException,
ComponentLifecycleException
- Throws:
ComponentInstantiationException
ComponentLifecycleException
Copyright © 2001-2009 Codehaus. All Rights Reserved.