org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializePhase Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of virtdata-lib-realer Show documentation
Show all versions of virtdata-lib-realer Show documentation
With inspiration from other libraries
package org.codehaus.plexus.personality.plexus.lifecycle.phase;
import org.codehaus.plexus.component.manager.ComponentManager;
import org.codehaus.plexus.lifecycle.phase.AbstractPhase;
public class InitializePhase
extends AbstractPhase
{
public void execute( Object object, ComponentManager manager )
throws PhaseExecutionException
{
if ( object instanceof Initializable )
{
try
{
( (Initializable) object ).initialize();
}
catch ( InitializationException e )
{
throw new PhaseExecutionException( "Error initialising component", e );
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy