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

org.codehaus.plexus.embed.PlexusEmbedder Maven / Gradle / Ivy

Go to download

Statistical sampling library for use in virtdata libraries, based on apache commons math 4

There is a newer version: 5.17.0
Show newest version
/* Created on Oct 7, 2004 */
package org.codehaus.plexus.embed;

import org.codehaus.classworlds.ClassWorld;
import org.codehaus.plexus.PlexusContainer;
import org.codehaus.plexus.PlexusContainerException;
import org.codehaus.plexus.logging.LoggerManager;
import org.codehaus.plexus.component.repository.exception.ComponentLifecycleException;
import org.codehaus.plexus.component.repository.exception.ComponentLookupException;
import org.codehaus.plexus.configuration.PlexusConfigurationResourceException;

import java.io.File;
import java.io.IOException;
import java.io.Reader;
import java.net.URL;
import java.util.Properties;

/**
 * @author jdcasey
 */
public interface PlexusEmbedder
{

    PlexusContainer getContainer();

    Object lookup( String role ) throws ComponentLookupException;

    Object lookup( String role, String id ) throws ComponentLookupException;

    boolean hasComponent( String role );

    boolean hasComponent( String role, String id );

    void release( Object service )
        throws ComponentLifecycleException;

    void setClassWorld( ClassWorld classWorld );

    void setConfiguration( URL configuration ) throws IOException;

    void setConfiguration( Reader configuration ) throws IOException;

    void addContextValue( Object key, Object value );

    void setProperties( Properties properties );

    void setProperties( File file );

    void start( ClassWorld classWorld )
        throws PlexusContainerException, PlexusConfigurationResourceException;

    void start()
        throws PlexusContainerException, PlexusConfigurationResourceException;

    void stop();

    // ----------------------------------------------------------------------
    //
    // ----------------------------------------------------------------------

    void setLoggerManager( LoggerManager loggerManager );    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy