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

All Known Implementing Classes:
PlexusContainerLocator

public interface ServiceLocator


Method Summary
 boolean hasComponent(java.lang.String role)
           
 boolean hasComponent(java.lang.String role, java.lang.String hint)
           
 java.lang.Object lookup(java.lang.String role)
           
 java.lang.Object lookup(java.lang.String role, java.lang.String hint)
           
 java.util.List<java.lang.Object> lookupList(java.lang.String role)
           
 java.util.Map<java.lang.String,java.lang.Object> lookupMap(java.lang.String role)
           
 void release(java.lang.Object component)
           
 void releaseAll(java.util.List<?> components)
           
 void releaseAll(java.util.Map<java.lang.String,?> components)
           
 

Method Detail

lookup

java.lang.Object lookup(java.lang.String role)
                        throws ComponentLookupException
Throws:
ComponentLookupException

lookup

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

lookupMap

java.util.Map<java.lang.String,java.lang.Object> lookupMap(java.lang.String role)
                                                           throws ComponentLookupException
Throws:
ComponentLookupException

lookupList

java.util.List<java.lang.Object> lookupList(java.lang.String role)
                                            throws ComponentLookupException
Throws:
ComponentLookupException

release

void release(java.lang.Object component)
             throws ComponentLifecycleException
Throws:
ComponentLifecycleException

releaseAll

void releaseAll(java.util.Map<java.lang.String,?> components)
                throws ComponentLifecycleException
Throws:
ComponentLifecycleException

releaseAll

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

hasComponent

boolean hasComponent(java.lang.String role)

hasComponent

boolean hasComponent(java.lang.String role,
                     java.lang.String hint)


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