public class SingletonComponentManager<T> extends AbstractComponentManager<T>
| Modifier and Type | Field and Description |
|---|---|
private T |
singleton |
builder, componentContextRealms, componentDescriptor, containerNEXT_START_ID, ROLE| Constructor and Description |
|---|
SingletonComponentManager(MutablePlexusContainer container,
LifecycleHandler lifecycleHandler,
ComponentDescriptor<T> componentDescriptor,
java.lang.String role,
java.lang.String roleHint) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
T |
getComponent() |
void |
release(java.lang.Object component) |
connected, createComponentInstance, decrementConnectionCount, dissociateComponentRealm, endComponentLifecycle, getComponentDescriptor, getConnections, getContainer, getLifecycleHandler, getLogger, getRealm, getRole, getRoleHint, getStartId, getType, incrementConnectionCount, startprivate T singleton
public SingletonComponentManager(MutablePlexusContainer container, LifecycleHandler lifecycleHandler, ComponentDescriptor<T> componentDescriptor, java.lang.String role, java.lang.String roleHint)
public void release(java.lang.Object component)
throws ComponentLifecycleException
ComponentLifecycleExceptionpublic void dispose()
throws ComponentLifecycleException
ComponentLifecycleExceptionpublic T getComponent() throws ComponentInstantiationException, ComponentLifecycleException