Package org.codehaus.plexus
Interface ComponentRegistry
-
- All Known Implementing Classes:
DefaultComponentRegistry
public interface ComponentRegistry
- Author:
- Jason van Zyl, Kenney Westerhof, Dain Sundstrom
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description <T> void
addComponent(T component, String role, String roleHint)
void
addComponentDescriptor(ComponentDescriptor<?> componentDescriptor)
void
dispose()
<T> ComponentDescriptor<T>
getComponentDescriptor(Class<T> type, String role, String roleHint)
ComponentDescriptor<?>
getComponentDescriptor(String role, String roleHint, org.codehaus.plexus.classworlds.realm.ClassRealm realm)
Deprecated.<T> List<ComponentDescriptor<T>>
getComponentDescriptorList(Class<T> type, String role)
<T> Map<String,ComponentDescriptor<T>>
getComponentDescriptorMap(Class<T> type, String role)
<T> T
lookup(Class<T> type, String role, String roleHint)
<T> T
lookup(ComponentDescriptor<T> componentDescriptor)
<T> List<T>
lookupList(Class<T> type, String role, List<String> hints)
<T> Map<String,T>
lookupMap(Class<T> type, String role, List<String> hints)
void
registerComponentManagerFactory(ComponentManagerFactory componentManagerFactory)
void
release(Object component)
void
removeComponentRealm(org.codehaus.plexus.classworlds.realm.ClassRealm classRealm)
-
-
-
Method Detail
-
registerComponentManagerFactory
void registerComponentManagerFactory(ComponentManagerFactory componentManagerFactory)
-
addComponentDescriptor
void addComponentDescriptor(ComponentDescriptor<?> componentDescriptor) throws CycleDetectedInComponentGraphException
-
getComponentDescriptor
<T> ComponentDescriptor<T> getComponentDescriptor(Class<T> type, String role, String roleHint)
-
getComponentDescriptor
@Deprecated ComponentDescriptor<?> getComponentDescriptor(String role, String roleHint, org.codehaus.plexus.classworlds.realm.ClassRealm realm)
Deprecated.
-
getComponentDescriptorList
<T> List<ComponentDescriptor<T>> getComponentDescriptorList(Class<T> type, String role)
-
getComponentDescriptorMap
<T> Map<String,ComponentDescriptor<T>> getComponentDescriptorMap(Class<T> type, String role)
-
lookup
<T> T lookup(Class<T> type, String role, String roleHint) throws ComponentLookupException
- Throws:
ComponentLookupException
-
lookup
<T> T lookup(ComponentDescriptor<T> componentDescriptor) throws ComponentLookupException
- Throws:
ComponentLookupException
-
lookupList
<T> List<T> lookupList(Class<T> type, String role, List<String> hints) throws ComponentLookupException
- Throws:
ComponentLookupException
-
lookupMap
<T> Map<String,T> lookupMap(Class<T> type, String role, List<String> hints) throws ComponentLookupException
- Throws:
ComponentLookupException
-
release
void release(Object component) throws ComponentLifecycleException
- Throws:
ComponentLifecycleException
-
removeComponentRealm
void removeComponentRealm(org.codehaus.plexus.classworlds.realm.ClassRealm classRealm) throws PlexusContainerException
- Throws:
PlexusContainerException
-
dispose
void dispose()
-
-