mapOrientedComponent.addComponentRequirement(requirement, value);
}
catch ( ComponentLookupException e )
{
throw new ComponentInstantiationException( "Error looking up requirement of MapOrientedComponent ", e );
}
catch ( ComponentConfigurationException e )
{
throw new ComponentInstantiationException( "Error adding requirement to MapOrientedComponent ", e );
}
}
MapConverter converter = new MapConverter();
ConverterLookup converterLookup = new DefaultConverterLookup();
DefaultExpressionEvaluator expressionEvaluator = new DefaultExpressionEvaluator();
PlexusConfiguration configuration = container.getConfigurationSource().getConfiguration( descriptor );
if ( configuration != null )
{
try
{
Map context = (Map) converter.fromConfiguration(converterLookup,
configuration,
null,
null,
realm,
expressionEvaluator,
null );
mapOrientedComponent.setComponentConfiguration( context );
}
catch ( ComponentConfigurationException e )
{
throw new ComponentInstantiationException( "Error adding configuration to MapOrientedComponent ", e );
}
}
}