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

org.codehaus.plexus.component.manager.ComponentManagerFactory Maven / Gradle / Ivy

The newest version!
package org.codehaus.plexus.component.manager;

import org.codehaus.plexus.MutablePlexusContainer;
import org.codehaus.plexus.component.repository.ComponentDescriptor;
import org.codehaus.plexus.lifecycle.LifecycleHandler;

public interface ComponentManagerFactory
{
    /**
     * Gets the unique identifier of this ComponentManagerFactory.  This id is the instantiation strategy specified
     * in a component descriptor.
     * @return the unique identifier and instantiation strategy name
     */
    String getId();

    /**
     * Creates a new component manager for the specified component descriptor.
     * @param container {@link MutablePlexusContainer}.
     * @param lifecycleHandler {@link LifecycleHandler}.
     * @param componentDescriptor {@link ComponentDescriptor}
     * @param role The role.
     * @param roleHint The hint for the role.
     * @param  The type.
     * @return {@link ComponentManager}
     */
     ComponentManager createComponentManager( MutablePlexusContainer container,
                                             LifecycleHandler lifecycleHandler,
                                             ComponentDescriptor componentDescriptor,
                                             String role,
                                             String roleHint );
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy