public final class DefaultPlexusBeanLocator extends java.lang.Object implements PlexusBeanLocator
PlexusBeanLocator
that locates beans of various types from zero or more Injector
s.Modifier and Type | Field and Description |
---|---|
private BeanLocator |
beanLocator |
private java.lang.String |
visibility |
Constructor and Description |
---|
DefaultPlexusBeanLocator(BeanLocator beanLocator) |
DefaultPlexusBeanLocator(BeanLocator beanLocator,
java.lang.String visibility) |
Modifier and Type | Method and Description |
---|---|
<T> java.lang.Iterable<PlexusBean<T>> |
locate(com.google.inject.TypeLiteral<T> role,
java.lang.String... hints)
Locates beans of the given type, optionally filtered using the given named hints.
|
private final BeanLocator beanLocator
private final java.lang.String visibility
@Inject public DefaultPlexusBeanLocator(BeanLocator beanLocator)
public DefaultPlexusBeanLocator(BeanLocator beanLocator, java.lang.String visibility)
public <T> java.lang.Iterable<PlexusBean<T>> locate(com.google.inject.TypeLiteral<T> role, java.lang.String... hints)
PlexusBeanLocator
locate
in interface PlexusBeanLocator
role
- The expected bean typehints
- The optional (canonical) hints