org.codehaus.plexus.personality.plexus.lifecycle.phase

Interface ServiceLocator

public interface ServiceLocator

Provides services to components by means of a lookup.
Author:
Dan Diephouse

Method Summary

boolean
hasComponent(String componentKey)
boolean
hasComponent(String role, String roleHint)
Object
lookup(String componentKey)
Object
lookup(String role, String roleHint)
List
lookupList(String role)
Map
lookupMap(String role)
void
release(Object component)
void
releaseAll(List components)
void
releaseAll(Map components)

Method Details

hasComponent

public boolean hasComponent(String componentKey)

hasComponent

public boolean hasComponent(String role,
                            String roleHint)

lookup

public Object lookup(String componentKey)
            throws ComponentLookupException

lookup

public Object lookup(String role,
                     String roleHint)
            throws ComponentLookupException

lookupList

public List lookupList(String role)
            throws ComponentLookupException

lookupMap

public Map lookupMap(String role)
            throws ComponentLookupException

release

public void release(Object component)
            throws ComponentLifecycleException

releaseAll

public void releaseAll(List components)
            throws ComponentLifecycleException

releaseAll

public void releaseAll(Map components)
            throws ComponentLifecycleException