org.codehaus.plexus.personality.plexus.lifecycle.phase
Class PlexusContainerLocator

java.lang.Object
  extended by org.codehaus.plexus.personality.plexus.lifecycle.phase.PlexusContainerLocator
All Implemented Interfaces:
ServiceLocator

public final class PlexusContainerLocator
extends Object
implements ServiceLocator


Constructor Summary
PlexusContainerLocator(PlexusContainer container)
           
 
Method Summary
 boolean hasComponent(String role)
           
 boolean hasComponent(String role, String hint)
           
 Object lookup(String role)
           
 Object lookup(String role, String hint)
           
 List<Object> lookupList(String role)
           
 Map<String,Object> lookupMap(String role)
           
 void release(Object component)
           
 void releaseAll(List<?> components)
           
 void releaseAll(Map<String,?> components)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlexusContainerLocator

public PlexusContainerLocator(PlexusContainer container)
Method Detail

lookup

public Object lookup(String role)
              throws ComponentLookupException
Specified by:
lookup in interface ServiceLocator
Throws:
ComponentLookupException

lookup

public Object lookup(String role,
                     String hint)
              throws ComponentLookupException
Specified by:
lookup in interface ServiceLocator
Throws:
ComponentLookupException

lookupMap

public Map<String,Object> lookupMap(String role)
                             throws ComponentLookupException
Specified by:
lookupMap in interface ServiceLocator
Throws:
ComponentLookupException

lookupList

public List<Object> lookupList(String role)
                        throws ComponentLookupException
Specified by:
lookupList in interface ServiceLocator
Throws:
ComponentLookupException

release

public void release(Object component)
             throws ComponentLifecycleException
Specified by:
release in interface ServiceLocator
Throws:
ComponentLifecycleException

releaseAll

public void releaseAll(Map<String,?> components)
                throws ComponentLifecycleException
Specified by:
releaseAll in interface ServiceLocator
Throws:
ComponentLifecycleException

releaseAll

public void releaseAll(List<?> components)
                throws ComponentLifecycleException
Specified by:
releaseAll in interface ServiceLocator
Throws:
ComponentLifecycleException

hasComponent

public boolean hasComponent(String role)
Specified by:
hasComponent in interface ServiceLocator

hasComponent

public boolean hasComponent(String role,
                            String hint)
Specified by:
hasComponent in interface ServiceLocator


Copyright © 2010-2012 Sonatype, Inc.. All Rights Reserved.