org.codehaus.plexus.personality.plexus.lifecycle.phase.StartPhase Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of virtdata-lib-curves4 Show documentation
Show all versions of virtdata-lib-curves4 Show documentation
Statistical sampling library for use in virtdata libraries, based
on apache commons math 4
package org.codehaus.plexus.personality.plexus.lifecycle.phase;
import org.codehaus.plexus.component.manager.ComponentManager;
import org.codehaus.plexus.lifecycle.phase.AbstractPhase;
public class StartPhase
extends AbstractPhase
{
public void execute( Object object, ComponentManager manager )
throws PhaseExecutionException
{
if ( object instanceof Startable )
{
try
{
( (Startable) object ).start();
}
catch ( StartingException e )
{
throw new PhaseExecutionException( "Error starting component", e );
}
}
}
}