public void execute( Object object, ComponentManager manager, ClassRealm lookupRealm ) throws PhaseExecutionException { if ( object instanceof Startable ) { try { ( (Startable) object ).start(); } catch ( StartingException e ) { throw new PhaseExecutionException( "Error starting component", e ); } } } }
public void execute( Object object, ComponentManager manager, ClassRealm lookupRealm ) throws PhaseExecutionException { if ( object instanceof Startable ) { try { ( (Startable) object ).stop(); } catch ( StoppingException e ) { throw new PhaseExecutionException( "Error stopping component", e ); } } } }
public void execute( Object object, ComponentManager manager, ClassRealm lookupRealm ) throws PhaseExecutionException { if ( object instanceof Startable ) { try { ( (Startable) object ).start(); } catch ( StartingException e ) { throw new PhaseExecutionException( "Error starting component", e ); } } } }
public void execute( Object object, ComponentManager manager, ClassRealm lookupRealm ) throws PhaseExecutionException { if ( object instanceof Startable ) { try { ( (Startable) object ).stop(); } catch ( StoppingException e ) { throw new PhaseExecutionException( "Error stopping component", e ); } } } }
( (Startable) bean ).start();
@SuppressWarnings( "finally" ) private void stop( final Startable bean ) { Logs.trace( "Stop: <>", bean, null ); try { bean.stop(); } catch ( final Throwable e ) { Logs.catchThrowable( e ); try { getPlexusLogger( this ).warn( "Problem stopping: " + Logs.identityToString( bean ), e ); } finally { return; // ignore any logging exceptions and continue with shutdown } } }
( (Startable) bean ).start();
private void start( final Startable bean ) { Logs.trace( "Start: <>", bean, null ); try { bean.start(); } catch ( final Throwable e ) { Logs.catchThrowable( e ); try { getPlexusLogger( this ).warn( "Error starting: " + Logs.identityToString( bean ), e ); } finally { Logs.throwUnchecked( e ); } } }