Interface Binding

All Known Implementing Classes:
NonBinding, SequenceBinding, SimpleBinding

public interface Binding
Represents an injection binding
  • Method Details

    • claims

      boolean claims(honeyroasted.jype.system.JTypeSystem system, InjectionTarget target)
      Test whether this Binding handles the given InjectionTarget
      Parameters:
      system - The JTypeSystem to use for type logic
      target - The injection target
      Returns:
      True if this binding handles the given target
    • handle

      InjectionResult handle(honeyroasted.jype.system.JTypeSystem system, InjectionTarget target)
      Handles the given InjectionTarget
      Parameters:
      system - The JTypeSystem to use for type logic
      target - The injection target
      Returns:
      The InjectionResult of handling the given target