@Singleton public final class DefaultPlexusBeanLocator extends Object implements PlexusBeanLocator
PlexusBeanLocator that locates beans of various types from zero or more Injectors.| Constructor and Description |
|---|
DefaultPlexusBeanLocator(BeanLocator beanLocator) |
DefaultPlexusBeanLocator(BeanLocator beanLocator,
String visibility) |
| Modifier and Type | Method and Description |
|---|---|
<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.
|
@Inject public DefaultPlexusBeanLocator(BeanLocator beanLocator)
public DefaultPlexusBeanLocator(BeanLocator beanLocator, String visibility)
public <T> Iterable<PlexusBean<T>> locate(com.google.inject.TypeLiteral<T> role, String... hints)
PlexusBeanLocatorlocate in interface PlexusBeanLocatorrole - The expected bean typehints - The optional (canonical) hintsCopyright © 2010-2015 Sonatype, Inc.. All Rights Reserved.