private void releaseWagon( String protocol, Wagon wagon ) { try { container.release( wagon ); } catch ( ComponentLifecycleException e ) { logger.error( "Problem releasing wagon - ignoring: " + e.getMessage() ); logger.debug( "", e ); } }
protected void startComponentLifecycle(Object component, ClassRealm realm) throws ComponentLifecycleException { try { componentManager.start(component); } catch (PhaseExecutionException e) { throw new ComponentLifecycleException("Error starting component", e); } }
@AfterClass public static void afterAll() { for ( File f : TMP_FILES ) { if ( f.exists() ) { try { FileUtils.forceDelete( f ); } catch ( IOException e ) { e.printStackTrace(); } } } if ( container != null ) { try { container.release( configurator ); } catch ( ComponentLifecycleException e ) { e.printStackTrace(); } container.dispose(); } }
@AfterClass public static void afterAll() { for ( File f : TMP_FILES ) { if ( f.exists() ) { try { FileUtils.forceDelete( f ); } catch ( IOException e ) { e.printStackTrace(); } } } if ( container != null ) { try { container.release( configurator ); } catch ( ComponentLifecycleException e ) { e.printStackTrace(); } container.dispose(); } }
protected void releaseAllCallback() { if ( components != null ) { try { container.releaseAll( components ); } catch ( ComponentLifecycleException e ) { logger.debug( "Error releasing components in active collection: " + e.getMessage(), e ); } components = null; } }
protected void endComponentLifecycle( Object component ) throws ComponentLifecycleException { ClassRealm contextRealm = componentContextRealms.remove( component ); if ( contextRealm == null ) { contextRealm = container.getLookupRealm( component ); } try { getLifecycleHandler().end( component, this, contextRealm ); } catch ( PhaseExecutionException e ) { throw new ComponentLifecycleException( "Error ending component lifecycle", e ); } }
protected void releaseAllCallback() { if ( components != null ) { try { container.releaseAll( components ); } catch ( ComponentLifecycleException e ) { logger.debug( "Error releasing components in active collection: " + e.getMessage(), e ); } components = null; } } }
throw new ComponentLifecycleException("Error constructing component " + descriptor.getHumanReadableKey(), e); } catch (LinkageError e) { throw new ComponentLifecycleException("Error constructing component " + descriptor.getHumanReadableKey(), e); } finally { Thread.currentThread().setContextClassLoader(oldClassLoader);
protected void releaseAllCallback() { if ( components != null ) { try { container.releaseAll( components ); } catch ( ComponentLifecycleException e ) { logger.debug( "Error releasing components in active collection: " + e.getMessage(), e ); } components.clear(); components = null; } }
protected void startComponentLifecycle( Object component, ClassRealm realm ) throws ComponentLifecycleException { try { componentManager.getLifecycleHandler().start( component, componentManager, realm ); } catch ( PhaseExecutionException e ) { throw new ComponentLifecycleException( "Error starting component", e ); } }
protected void releaseAllCallback() { if ( components != null ) { try { container.releaseAll( components ); } catch ( ComponentLifecycleException e ) { logger.debug( "Error releasing components in active collection: " + e.getMessage(), e ); } components.clear(); components = null; } } }
protected void startComponentLifecycle(Object component, ClassRealm realm) throws ComponentLifecycleException { try { componentManager.getLifecycleHandler().start(component, componentManager, realm); } catch (PhaseExecutionException e) { throw new ComponentLifecycleException("Error starting component", e); } }
private void releaseWagon( String protocol, Wagon wagon, String repositoryId ) { String hint = getWagonHint( protocol, repositoryId ); PlexusContainer container = getWagonContainer( hint ); try { container.release( wagon ); } catch ( ComponentLifecycleException e ) { getLogger().error( "Problem releasing wagon - ignoring: " + e.getMessage() ); } }
protected void endComponentLifecycle( Object component ) throws ComponentLifecycleException { ClassRealm contextRealm = (ClassRealm) componentContextRealms.remove( component ); if ( contextRealm == null ) { contextRealm = container.getLookupRealm( component ); } try { getLifecycleHandler().end( component, this, contextRealm ); } catch ( PhaseExecutionException e ) { throw new ComponentLifecycleException( "Error ending component lifecycle", e ); } }
this.getLogger().warn( e.getMessage(), e );
throw new ComponentLifecycleException("Error constructing component " + descriptor.getHumanReadableKey(), e); } finally { Thread.currentThread().setContextClassLoader(oldClassLoader);
container.release(componentConfigurator); } catch (ComponentLifecycleException e) { log.error("Problem releasing configurator - ignoring: " + e.getMessage());
log.error( "Problem releasing configurator - ignoring: " + e.getMessage() );