Class PlexusTypeBinder

java.lang.Object
org.eclipse.sisu.plexus.PlexusTypeBinder
All Implemented Interfaces:
PlexusTypeListener, QualifiedTypeListener

public final class PlexusTypeBinder extends Object implements PlexusTypeListener
PlexusTypeListener that binds Plexus Components.
  • Field Details

    • binder

      private final com.google.inject.Binder binder
    • qualifiedTypeBinder

      private final QualifiedTypeListener qualifiedTypeBinder
  • Constructor Details

    • PlexusTypeBinder

      public PlexusTypeBinder(com.google.inject.Binder binder)
  • Method Details

    • hear

      public void hear(Class<?> qualifiedType, Object source)
      Description copied from interface: QualifiedTypeListener
      Invoked when the QualifiedTypeVisitor finds a qualified type.
      Specified by:
      hear in interface QualifiedTypeListener
      Parameters:
      qualifiedType - The qualified type
      source - The source of this type
      See Also:
      • Binder.withSource(Object)
    • hear

      public void hear(org.codehaus.plexus.component.annotations.Component component, DeferredClass<?> clazz, Object source)
      Description copied from interface: PlexusTypeListener
      Invoked when the PlexusTypeListener finds a Plexus component.
      Specified by:
      hear in interface PlexusTypeListener
      Parameters:
      component - The Plexus component
      clazz - The implementation
      source - The source of this component
    • componentBinder

      private com.google.inject.Binder componentBinder(Object source, String description)