public final class DefaultPlexusBeanLocator extends java.lang.Object implements PlexusBeanLocator
PlexusBeanLocator that locates beans of various types from zero or more Injectors.| Constructor and Description |
|---|
DefaultPlexusBeanLocator(org.eclipse.sisu.inject.BeanLocator beanLocator) |
DefaultPlexusBeanLocator(org.eclipse.sisu.inject.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.
|
@Inject public DefaultPlexusBeanLocator(org.eclipse.sisu.inject.BeanLocator beanLocator)
public DefaultPlexusBeanLocator(org.eclipse.sisu.inject.BeanLocator beanLocator,
java.lang.String visibility)
public <T> java.lang.Iterable<PlexusBean<T>> locate(com.google.inject.TypeLiteral<T> role, java.lang.String... hints)
PlexusBeanLocatorlocate in interface PlexusBeanLocatorrole - The expected bean typehints - The optional (canonical) hints