org.codehaus.plexus.component.manager
Class KeepAliveSingletonComponentManager
java.lang.Object
org.codehaus.plexus.component.manager.AbstractComponentManager
org.codehaus.plexus.component.manager.KeepAliveSingletonComponentManager
- All Implemented Interfaces:
- java.lang.Cloneable, ComponentManager
public class KeepAliveSingletonComponentManager
- extends AbstractComponentManager
This ensures a component is only used as a singleton, and is only shutdown when
the container shuts down.
- Version:
- $Id: KeepAliveSingletonComponentManager.java 5449 2007-01-16 23:42:11Z jvanzyl $
- Author:
- Bert van Brakel
Method Summary |
void |
dispose()
|
java.lang.Object |
getComponent(org.codehaus.plexus.classworlds.realm.ClassRealm realm)
|
void |
release(java.lang.Object component)
|
Methods inherited from class org.codehaus.plexus.component.manager.AbstractComponentManager |
connected, copy, createComponentInstance, createComponentInstance, decrementConnectionCount, endComponentLifecycle, getComponent, getComponentDescriptor, getConnections, getContainer, getId, getLifecycleHandler, getLogger, incrementConnectionCount, initialize, resume, setup, startComponentLifecycle, suspend |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeepAliveSingletonComponentManager
public KeepAliveSingletonComponentManager()
release
public void release(java.lang.Object component)
dispose
public void dispose()
throws org.codehaus.plexus.component.repository.exception.ComponentLifecycleException
- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLifecycleException
getComponent
public java.lang.Object getComponent(org.codehaus.plexus.classworlds.realm.ClassRealm realm)
throws ComponentInstantiationException,
org.codehaus.plexus.component.repository.exception.ComponentLifecycleException
- Throws:
ComponentInstantiationException
org.codehaus.plexus.component.repository.exception.ComponentLifecycleException
Copyright © 2001-2007 Codehaus. All Rights Reserved.