Class DefaultPlexusBeanLocator

java.lang.Object
org.eclipse.sisu.plexus.DefaultPlexusBeanLocator
All Implemented Interfaces:
PlexusBeanLocator

public final class DefaultPlexusBeanLocator extends Object implements PlexusBeanLocator
PlexusBeanLocator that locates beans of various types from zero or more Injectors.
  • Field Details

    • beanLocator

      private final BeanLocator beanLocator
    • visibility

      private final String visibility
  • Constructor Details

    • DefaultPlexusBeanLocator

      @Inject public DefaultPlexusBeanLocator(BeanLocator beanLocator)
    • DefaultPlexusBeanLocator

      public DefaultPlexusBeanLocator(BeanLocator beanLocator, String visibility)
  • Method Details

    • locate

      public <T> Iterable<PlexusBean<T>> locate(com.google.inject.TypeLiteral<T> role, String... hints)
      Description copied from interface: PlexusBeanLocator
      Locates beans of the given type, optionally filtered using the given named hints.
      Specified by:
      locate in interface PlexusBeanLocator
      Parameters:
      role - The expected bean type
      hints - The optional (canonical) hints
      Returns:
      Sequence of Plexus bean mappings; ordered according to the given hints