Details
-
Type:
Wish
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Container
-
Labels:None
-
Number of attachments :
Description
protected ComponentDescriptor setupCoreComponent( String role,
BasicComponentConfigurator configurator,
PlexusConfiguration c,
PlexusContainer container )
throws ContainerInitializationException
{
String implementation = c.getAttribute( "implementation", null );
if ( implementation == null )
{ //TODO: put plexus.conf in constants and change to plexus.xml String msg = "Core component: '" + role + "' + which is needed by plexus to function properly cannot " + "be instantiated. Implementation attribute was not specified in plexus.conf." + "This is highly irregular, your plexus JAR is most likely corrupt."; throw new ContainerInitializationException( msg ); }ComponentDescriptor componentDescriptor = new ComponentDescriptor();
componentDescriptor.setRole( role );
componentDescriptor.setImplementation( implementation );
componentDescriptor.setRealmId( container.getContainerRealm().getId() );
PlexusConfiguration configuration = new XmlPlexusConfiguration( "containerConfiguration" );
configuration.addChild( c );
try
{ configurator.configureComponent( container, configuration, container.getContainerRealm() ); }catch ( ComponentConfigurationException e )
{ // TODO: don't like rewrapping the same exception, but better than polluting this all through the config code String message = "Error configuring component: " + componentDescriptor.getHumanReadableKey(); throw new ContainerInitializationException( message, e ); } return componentDescriptor;
}
I didn't see any other classes are using the returned componentDescriptor?
Activity
| Field | Original Value | New Value |
|---|---|---|
| Fix Version/s | 1.0-beta-4 [ 14654 ] |
| Fix Version/s | 1.0-beta-4 [ 14654 ] |