public class SingletonComponentManager<T> extends AbstractComponentManager<T>
Modifier and Type | Field and Description |
---|---|
private T |
singleton |
builder, componentContextRealms, componentDescriptor, container
NEXT_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, start
private 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
ComponentLifecycleException
public void dispose() throws ComponentLifecycleException
ComponentLifecycleException
public T getComponent() throws ComponentInstantiationException, ComponentLifecycleException