|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.plexus.component.manager.AbstractComponentManager
org.codehaus.plexus.component.manager.SingletonComponentManager
public class SingletonComponentManager
This ensures a component is only used as a singleton, and is only shutdown when the container shuts down.
Field Summary |
---|
Fields inherited from class org.codehaus.plexus.component.manager.AbstractComponentManager |
---|
builder, componentContextRealms, componentDescriptor, container |
Fields inherited from interface org.codehaus.plexus.component.manager.ComponentManager |
---|
ROLE |
Constructor Summary | |
---|---|
SingletonComponentManager()
|
Method Summary | |
---|---|
void |
dispose()
|
java.lang.Object |
getComponent()
|
java.lang.String |
getId()
|
void |
release(java.lang.Object component)
|
Methods inherited from class org.codehaus.plexus.component.manager.AbstractComponentManager |
---|
connected, copy, createComponentBuilder, createComponentInstance, decrementConnectionCount, dissociateComponentRealm, endComponentLifecycle, getComponentDescriptor, getConnections, getContainer, getLifecycleHandler, getLogger, getRealm, getRole, getRoleHint, incrementConnectionCount, initialize, setup |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SingletonComponentManager()
Method Detail |
---|
public java.lang.String getId()
public void release(java.lang.Object component) throws ComponentLifecycleException
ComponentLifecycleException
public void dispose() throws ComponentLifecycleException
ComponentLifecycleException
public java.lang.Object getComponent() throws ComponentInstantiationException, ComponentLifecycleException
ComponentInstantiationException
ComponentLifecycleException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |