org.codehaus.plexus.component.repository
public class DefaultComponentRepository extends AbstractLogEnabled implements ComponentRepository
UNKNOWN: We need to process component descriptors from a specified configuration file in addition to component descriptors that are stored in the JAR along with the component. So we need to be able to process a directory of components as we now can package any number of components in a JAR which will all be described by a components.xml file in the top-level of the JAR.
Field Summary | |
---|---|
ClassRealm | classRealm |
Map | componentDescriptorMaps |
Map | componentDescriptors |
CompositionResolver | compositionResolver |
PlexusConfiguration | configuration |
static String | COMPONENT |
static String | COMPONENTS |
Constructor Summary | |
---|---|
DefaultComponentRepository() |
Method Summary | |
---|---|
void | addComponentDescriptor(PlexusConfiguration configuration) |
void | addComponentDescriptor(ComponentDescriptor componentDescriptor) |
void | configure(PlexusConfiguration configuration) |
List | getComponentDependencies(ComponentDescriptor componentDescriptor) |
ComponentDescriptor | getComponentDescriptor(String key) |
Map | getComponentDescriptorMap(String role) |
protected PlexusConfiguration | getConfiguration() |
boolean | hasComponent(String role) |
boolean | hasComponent(String role, String roleHint) |
void | initialize() |
void | initializeComponentDescriptors() |
void | initializeComponentDescriptorsFromUserConfiguration() |
void | setClassRealm(ClassRealm classRealm) |
void | validateComponentDescriptor(ComponentDescriptor componentDescriptor) |