Class DefaultComponentRepository
- java.lang.Object
-
- org.codehaus.plexus.logging.AbstractLogEnabled
-
- org.codehaus.plexus.component.repository.DefaultComponentRepository
-
- All Implemented Interfaces:
ComponentRepository
,LogEnabled
public class DefaultComponentRepository extends AbstractLogEnabled implements ComponentRepository
- Author:
- Jason van Zyl
-
-
Constructor Summary
Constructors Constructor Description DefaultComponentRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addComponentDescriptor(ComponentDescriptor<?> componentDescriptor)
<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)
void
removeComponentRealm(org.codehaus.plexus.classworlds.realm.ClassRealm classRealm)
-
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Method Detail
-
getComponentDescriptor
public <T> ComponentDescriptor<T> getComponentDescriptor(Class<T> type, String role, String roleHint)
- Specified by:
getComponentDescriptor
in interfaceComponentRepository
-
getComponentDescriptorMap
public <T> Map<String,ComponentDescriptor<T>> getComponentDescriptorMap(Class<T> type, String role)
- Specified by:
getComponentDescriptorMap
in interfaceComponentRepository
-
getComponentDescriptorList
public <T> List<ComponentDescriptor<T>> getComponentDescriptorList(Class<T> type, String role)
- Specified by:
getComponentDescriptorList
in interfaceComponentRepository
-
getComponentDescriptor
@Deprecated public ComponentDescriptor<?> getComponentDescriptor(String role, String roleHint, org.codehaus.plexus.classworlds.realm.ClassRealm realm)
Deprecated.- Specified by:
getComponentDescriptor
in interfaceComponentRepository
-
removeComponentRealm
public void removeComponentRealm(org.codehaus.plexus.classworlds.realm.ClassRealm classRealm)
- Specified by:
removeComponentRealm
in interfaceComponentRepository
-
addComponentDescriptor
public void addComponentDescriptor(ComponentDescriptor<?> componentDescriptor) throws CycleDetectedInComponentGraphException
- Specified by:
addComponentDescriptor
in interfaceComponentRepository
- Throws:
CycleDetectedInComponentGraphException
-
-