org.sonatype.guice.plexus.locators
Class DefaultPlexusBeanLocator

java.lang.Object
  extended by org.sonatype.guice.plexus.locators.DefaultPlexusBeanLocator
All Implemented Interfaces:
PlexusBeanLocator

@Singleton
public final class DefaultPlexusBeanLocator
extends Object
implements PlexusBeanLocator

PlexusBeanLocator that locates beans of various types from zero or more Injectors.


Constructor Summary
DefaultPlexusBeanLocator(BeanLocator beanLocator)
           
DefaultPlexusBeanLocator(BeanLocator beanLocator, String visibility)
           
 
Method Summary
<T> Iterable<PlexusBean<T>>
locate(com.google.inject.TypeLiteral<T> role, String... hints)
          Locates beans of the given type, optionally filtered using the given named hints.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPlexusBeanLocator

@Inject
public DefaultPlexusBeanLocator(BeanLocator beanLocator)

DefaultPlexusBeanLocator

public DefaultPlexusBeanLocator(BeanLocator beanLocator,
                                String visibility)
Method Detail

locate

public <T> Iterable<PlexusBean<T>> locate(com.google.inject.TypeLiteral<T> role,
                                          String... hints)
Description copied from interface: PlexusBeanLocator
Locates beans of the given type, optionally filtered using the given named hints.

Specified by:
locate in interface PlexusBeanLocator
Parameters:
role - The expected bean type
hints - The optional (canonical) hints
Returns:
Sequence of Plexus bean mappings; ordered according to the given hints


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