public final class DefaultPlexusBeanLocator extends Object implements PlexusBeanLocator
PlexusBeanLocator
that locates beans of various types from zero or more Injector
s.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)
PlexusBeanLocator
locate
in interface PlexusBeanLocator
role
- The expected bean typehints
- The optional (canonical) hintsCopyright © 2017. All rights reserved.