org.codehaus.plexus.component.manager
Class ClassicSingletonComponentManager
java.lang.Object
org.codehaus.plexus.component.manager.AbstractComponentManager
org.codehaus.plexus.component.manager.ClassicSingletonComponentManager
- All Implemented Interfaces:
- Cloneable, ComponentManager
public class ClassicSingletonComponentManager
- extends AbstractComponentManager
This ensures only a single manager of a a component exists. Once no
more connections for this component exists it is disposed.
- Version:
- $Id: ClassicSingletonComponentManager.java 6099 2007-03-15 16:35:04Z kenney $
- Author:
- Jason van Zyl, Bert van Brakel
Methods inherited from class org.codehaus.plexus.component.manager.AbstractComponentManager |
connected, copy, createComponentInstance, createComponentInstance, decrementConnectionCount, endComponentLifecycle, getComponent, getComponentDescriptor, getConnections, getContainer, getId, getLifecycleHandler, getLogger, incrementConnectionCount, resume, setup, startComponentLifecycle, suspend |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassicSingletonComponentManager
public ClassicSingletonComponentManager()
release
public void release(Object component)
throws org.codehaus.plexus.component.repository.exception.ComponentLifecycleException
- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLifecycleException
dispose
public void dispose()
throws org.codehaus.plexus.component.repository.exception.ComponentLifecycleException
- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLifecycleException
getComponent
public 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
findSingleton
protected Object findSingleton(org.codehaus.plexus.classworlds.realm.ClassRealm realm)
findSingleton
protected Object findSingleton(Object component)
initialize
public void initialize()
- Specified by:
initialize
in interface ComponentManager
- Overrides:
initialize
in class AbstractComponentManager
Copyright © 2001-2010 Codehaus. All Rights Reserved.