final class PlexusTypeRegistry
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private CloningClassSpace |
clones |
private java.util.Map<java.lang.String,org.codehaus.plexus.component.annotations.Component> |
components |
private java.util.Set<java.lang.String> |
deferredNames |
private java.util.Map<java.lang.String,DeferredClass<?>> |
implementations |
private static org.codehaus.plexus.component.annotations.Component |
LOAD_ON_START_PLACEHOLDER |
private ClassSpace |
space |
Constructor and Description |
---|
PlexusTypeRegistry(ClassSpace space) |
Modifier and Type | Method and Description |
---|---|
(package private) java.lang.String |
addComponent(java.lang.String role,
java.lang.String hint,
java.lang.String instantiationStrategy,
java.lang.String description,
java.lang.String implementation)
Registers the given component, automatically disambiguating between implementations bound multiple times.
|
private DeferredClass<?> |
cloneImplementation(java.lang.String implementation)
Clones an implementation so it can be bound again with different configuration.
|
(package private) java.util.Map<org.codehaus.plexus.component.annotations.Component,DeferredClass<?>> |
getComponents() |
(package private) ClassSpace |
getSpace() |
(package private) void |
loadOnStart(java.lang.String role,
java.lang.String hint)
Records that the given Plexus component should be loaded when the container starts.
|
private java.lang.Class<?> |
loadRole(java.lang.String role,
java.lang.String implementation)
Attempts to load the given Plexus role, checks constructors for concrete types.
|
private static final org.codehaus.plexus.component.annotations.Component LOAD_ON_START_PLACEHOLDER
private final java.util.Map<java.lang.String,org.codehaus.plexus.component.annotations.Component> components
private final java.util.Map<java.lang.String,DeferredClass<?>> implementations
private final java.util.Set<java.lang.String> deferredNames
private final ClassSpace space
private CloningClassSpace clones
PlexusTypeRegistry(ClassSpace space)
ClassSpace getSpace()
void loadOnStart(java.lang.String role, java.lang.String hint)
role
- The Plexus rolehint
- The Plexus hintjava.lang.String addComponent(java.lang.String role, java.lang.String hint, java.lang.String instantiationStrategy, java.lang.String description, java.lang.String implementation)
role
- The Plexus rolehint
- The Plexus hintinstantiationStrategy
- The instantiation strategydescription
- The component descriptionimplementation
- The implementationnull
java.util.Map<org.codehaus.plexus.component.annotations.Component,DeferredClass<?>> getComponents()
private java.lang.Class<?> loadRole(java.lang.String role, java.lang.String implementation)
role
- The Plexus roleimplementation
- The implementationprivate DeferredClass<?> cloneImplementation(java.lang.String implementation)
implementation
- The implementation