public final class

DefaultPlexusBeanLocator

extends Object
implements PlexusBeanLocator
java.lang.Object
   ↳ org.eclipse.sisu.plexus.DefaultPlexusBeanLocator

Class Overview

PlexusBeanLocator that locates beans of various types from zero or more Injectors.

Summary

Public Constructors
DefaultPlexusBeanLocator(BeanLocator beanLocator)
DefaultPlexusBeanLocator(BeanLocator beanLocator, String visibility)
Public Methods
<T> Iterable<PlexusBean<T>> locate(TypeLiteral<T> role, String... hints)
Locates beans of the given type, optionally filtered using the given named hints.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.eclipse.sisu.plexus.PlexusBeanLocator

Public Constructors

public DefaultPlexusBeanLocator (BeanLocator beanLocator)

public DefaultPlexusBeanLocator (BeanLocator beanLocator, String visibility)

Public Methods

public Iterable<PlexusBean<T>> locate (TypeLiteral<T> role, String... hints)

Locates beans of the given type, optionally filtered using the given named hints.

Parameters
role The expected bean type
hints The optional (canonical) hints
Returns
  • Sequence of Plexus bean mappings; ordered according to the given hints