public class SingletonComponentManager<T> extends AbstractComponentManager<T>
builder, componentContextRealms, componentDescriptor, container
NEXT_START_ID, ROLE
Constructor and Description |
---|
SingletonComponentManager(MutablePlexusContainer container,
LifecycleHandler lifecycleHandler,
ComponentDescriptor<T> componentDescriptor,
String role,
String roleHint) |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
T |
getComponent() |
void |
release(Object component) |
connected, createComponentInstance, decrementConnectionCount, dissociateComponentRealm, endComponentLifecycle, getComponentDescriptor, getConnections, getContainer, getLifecycleHandler, getLogger, getRealm, getRole, getRoleHint, getStartId, getType, incrementConnectionCount, start
public SingletonComponentManager(MutablePlexusContainer container, LifecycleHandler lifecycleHandler, ComponentDescriptor<T> componentDescriptor, String role, String roleHint)
public void release(Object component) throws ComponentLifecycleException
ComponentLifecycleException
public void dispose() throws ComponentLifecycleException
ComponentLifecycleException
public T getComponent() throws ComponentInstantiationException, ComponentLifecycleException
Copyright © 2001–2019 Codehaus Plexus. All rights reserved.