All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.codehaus.plexus.personality.plexus.lifecycle.phase.ServiceablePhase Maven / Gradle / Ivy

There is a newer version: 3.1.1
Show newest version
package org.codehaus.plexus.personality.plexus.lifecycle.phase;

import org.codehaus.plexus.PlexusContainer;
import org.codehaus.plexus.component.manager.ComponentManager;
import org.codehaus.plexus.lifecycle.phase.AbstractPhase;

public class ServiceablePhase
    extends AbstractPhase
{
    public void execute( Object object, ComponentManager manager )
    {
        if ( object instanceof Serviceable )
        {
            PlexusContainer container = manager.getContainer();

            ( (Serviceable) object ).service( new PlexusContainerLocator(container) );
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy