Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
package org.codehaus.plexus;
/*
* Copyright 2001-2006 Codehaus Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import org.codehaus.plexus.classworlds.realm.ClassRealm;
import org.codehaus.plexus.component.discovery.ComponentDiscoveryListener;
import org.codehaus.plexus.component.repository.ComponentDescriptor;
import org.codehaus.plexus.component.repository.ComponentDescriptorListener;
import org.codehaus.plexus.component.repository.exception.ComponentLifecycleException;
import org.codehaus.plexus.component.repository.exception.ComponentLookupException;
import org.codehaus.plexus.component.repository.exception.ComponentRepositoryException;
import org.codehaus.plexus.configuration.PlexusConfigurationException;
import org.codehaus.plexus.context.Context;
import java.util.List;
import java.util.Map;
/**
* PlexusContainer is the entry-point for loading and accessing other
* components.
*/
public interface PlexusContainer
{
String ROLE = PlexusContainer.class.getName();
// ------------------------------------------------------------------------
// Lookup
// ------------------------------------------------------------------------
/**
* Looks up and returns a component object with the given unique key or role.
* @param role a unique key for the desired component
* @return a Plexus component object
*/
Object lookup( String role )
throws ComponentLookupException;
/**
* Looks up and returns a component object with the given unique role/role-hint combination.
* @param role a non-unique key for the desired component
* @param roleHint a hint for the desired component implementation
* @return a Plexus component object
*/
Object lookup( String role, String roleHint )
throws ComponentLookupException;
/**
* Looks up and returns a component object with the given unique key or role.
* @param type the unique type of the component within the container
* @return a Plexus component object
*/
T lookup( Class type )
throws ComponentLookupException;
/**
* Looks up and returns a component object with the given unique role/role-hint combination.
* @param type the non-unique type of the component
* @param roleHint a hint for the desired component implementation
* @return a Plexus component object
*/
T lookup( Class type, String roleHint )
throws ComponentLookupException;
/**
* Looks up and returns a component object for the specified and registered component descriptor.
* @param descriptor a conponent descriptor registered with the container
* @return a Plexus component object
*/
T lookup( ComponentDescriptor descriptor )
throws ComponentLookupException;
/**
* Looks up and returns a component object with the given unique role/role-hint combination.
* @param type the non-unique type of the component
* @param role a non-unique key for the desired component
* @param roleHint a hint for the desired component implementation
* @return a Plexus component object
*/
@Deprecated
T lookup( Class type, String role, String roleHint )
throws ComponentLookupException;
/**
* Looks up and returns a List of component objects with the given role.
* @param role a non-unique key for the desired components
* @return a List of component objects
*/
List