org.codehaus.plexus.personality.plexus.lifecycle.phase
Interface ServiceLocator

All Known Implementing Classes:
PlexusContainerLocator

public interface ServiceLocator


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)
           
 

Method Detail

lookup

Object lookup(String role)
              throws ComponentLookupException
Throws:
ComponentLookupException

lookup

Object lookup(String role,
              String hint)
              throws ComponentLookupException
Throws:
ComponentLookupException

lookupMap

Map<String,Object> lookupMap(String role)
                             throws ComponentLookupException
Throws:
ComponentLookupException

lookupList

List<Object> lookupList(String role)
                        throws ComponentLookupException
Throws:
ComponentLookupException

release

void release(Object component)
             throws ComponentLifecycleException
Throws:
ComponentLifecycleException

releaseAll

void releaseAll(Map<String,?> components)
                throws ComponentLifecycleException
Throws:
ComponentLifecycleException

releaseAll

void releaseAll(List<?> components)
                throws ComponentLifecycleException
Throws:
ComponentLifecycleException

hasComponent

boolean hasComponent(String role)

hasComponent

boolean hasComponent(String role,
                     String hint)


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