Package org.eclipse.sisu.plexus
Class DefaultPlexusBeanLocator
- java.lang.Object
-
- org.eclipse.sisu.plexus.DefaultPlexusBeanLocator
-
- All Implemented Interfaces:
PlexusBeanLocator
public final class DefaultPlexusBeanLocator extends java.lang.Object implements PlexusBeanLocator
PlexusBeanLocator
that locates beans of various types from zero or moreInjector
s.
-
-
Field Summary
Fields Modifier and Type Field Description private BeanLocator
beanLocator
private java.lang.String
visibility
-
Constructor Summary
Constructors Constructor Description DefaultPlexusBeanLocator(BeanLocator beanLocator)
DefaultPlexusBeanLocator(BeanLocator beanLocator, java.lang.String visibility)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
beanLocator
private final BeanLocator beanLocator
-
visibility
private final java.lang.String visibility
-
-
Constructor Detail
-
DefaultPlexusBeanLocator
@Inject public DefaultPlexusBeanLocator(BeanLocator beanLocator)
-
DefaultPlexusBeanLocator
public DefaultPlexusBeanLocator(BeanLocator beanLocator, java.lang.String visibility)
-
-
Method Detail
-
locate
public <T> java.lang.Iterable<PlexusBean<T>> locate(com.google.inject.TypeLiteral<T> role, java.lang.String... hints)
Description copied from interface:PlexusBeanLocator
Locates beans of the given type, optionally filtered using the given named hints.- Specified by:
locate
in interfacePlexusBeanLocator
- Parameters:
role
- The expected bean typehints
- The optional (canonical) hints- Returns:
- Sequence of Plexus bean mappings; ordered according to the given hints
-
-