try lifecycleHandler = lifecycleHandlerManager.getLifecycleHandler( descriptor.getLifecycleHandler() ); throw new ComponentLookupException( "Undefined lifecycle handler: " + descriptor.getLifecycleHandler(), role, roleHint,
private LifecycleHandler findLifecycleHandler( ComponentDescriptor descriptor ) throws UndefinedLifecycleHandlerException { String lifecycleHandlerId = descriptor.getLifecycleHandler(); return lifecycleHandlerManager.getLifecycleHandler( lifecycleHandlerId ); }
private void writeComponents( XMLWriter w, List componentDescriptors ) throws ComponentDescriptorCreatorException, PlexusConfigurationException { w.startElement( "components" ); for ( Iterator i = componentDescriptors.iterator(); i.hasNext(); ) { w.startElement( "component" ); ComponentDescriptor cd = (ComponentDescriptor) i.next(); element( w, "role", cd.getRole() ); element( w, "role-hint", cd.getRoleHint() ); element( w, "implementation", cd.getImplementation() ); element( w, "instantiation-strategy", cd.getInstantiationStrategy() ); element( w, "lifecycle-handler", cd.getLifecycleHandler() ); writeRequirements( w, cd.getRequirements() ); writeConfiguration( w, cd.getConfiguration() ); w.endElement(); } w.endElement(); }
element( w, "lifecycle-handler", cd.getLifecycleHandler() );