org.sonatype.guice.plexus.locators
Class DefaultPlexusBeanLocator
java.lang.Object
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 Injector
s.
Method Summary |
|
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 |
DefaultPlexusBeanLocator
@Inject
public DefaultPlexusBeanLocator(BeanLocator beanLocator)
DefaultPlexusBeanLocator
public DefaultPlexusBeanLocator(BeanLocator beanLocator,
String visibility)
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 typehints
- The optional (canonical) hints
- Returns:
- Sequence of Plexus bean mappings; ordered according to the given hints
Copyright © 2010-2011 Sonatype, Inc.. All Rights Reserved.