public class DefaultComponentRegistry extends Object implements ComponentRegistry
Constructor and Description |
---|
DefaultComponentRegistry(MutablePlexusContainer container,
ComponentRepository repository,
LifecycleHandlerManager lifecycleHandlerManager) |
public DefaultComponentRegistry(MutablePlexusContainer container, ComponentRepository repository, LifecycleHandlerManager lifecycleHandlerManager)
public void dispose()
dispose
in interface ComponentRegistry
public void registerComponentManagerFactory(ComponentManagerFactory componentManagerFactory)
registerComponentManagerFactory
in interface ComponentRegistry
public void addComponentDescriptor(ComponentDescriptor<?> componentDescriptor) throws ComponentRepositoryException
addComponentDescriptor
in interface ComponentRegistry
ComponentRepositoryException
public <T> ComponentDescriptor<T> getComponentDescriptor(Class<T> type, String role, String roleHint)
getComponentDescriptor
in interface ComponentRegistry
@Deprecated public ComponentDescriptor<?> getComponentDescriptor(String role, String roleHint, org.codehaus.plexus.classworlds.realm.ClassRealm realm)
getComponentDescriptor
in interface ComponentRegistry
public <T> Map<String,ComponentDescriptor<T>> getComponentDescriptorMap(Class<T> type, String role)
getComponentDescriptorMap
in interface ComponentRegistry
public <T> List<ComponentDescriptor<T>> getComponentDescriptorList(Class<T> type, String role)
getComponentDescriptorList
in interface ComponentRegistry
public <T> T lookup(Class<T> type, String role, String roleHint) throws ComponentLookupException
lookup
in interface ComponentRegistry
ComponentLookupException
public <T> Map<String,T> lookupMap(Class<T> type, String role, List<String> roleHints) throws ComponentLookupException
lookupMap
in interface ComponentRegistry
ComponentLookupException
public <T> List<T> lookupList(Class<T> type, String role, List<String> roleHints) throws ComponentLookupException
lookupList
in interface ComponentRegistry
ComponentLookupException
public void release(Object component) throws ComponentLifecycleException
release
in interface ComponentRegistry
ComponentLifecycleException
public void removeComponentRealm(org.codehaus.plexus.classworlds.realm.ClassRealm classRealm) throws PlexusContainerException
removeComponentRealm
in interface ComponentRegistry
PlexusContainerException
Copyright © 2017. All rights reserved.