Interface ClassDependencyManufacturerContext

    • Method Detail

      • getDependencyClass

        java.lang.Class<?> getDependencyClass()
        Obtains the Class of the dependency.
        Returns:
        Class of the dependency.
      • getDependencyType

        java.lang.reflect.Type getDependencyType()
        Obtains the Type of the dependency.
        Returns:
        Type of the dependency.
      • getDependencyQualifier

        java.lang.String getDependencyQualifier()

        Obtains the dependency qualifier.

        This is via Qualifier or Qualified Annotation on the dependency.

        This provides standard means to obtain the qualifier and avoid each ClassDependencyManufacturer handling Annotation to determine.

        Returns:
        Qualifier for the dependency.
      • getDependencyAnnotations

        java.lang.annotation.Annotation[] getDependencyAnnotations()
        Obtains the Annotation instances for the dependency.
        Returns:
        Annotation instances for the dependency.
      • getDependencyAnnotation

        <A extends java.lang.annotation.Annotation> A getDependencyAnnotation​(java.lang.Class<? extends A> annotationType)
        Obtains the Annotation by the input type.
        Parameters:
        annotationType - Required Annotation type.
        Returns:
        Annotation or null if no Annotation by the required type.
      • getName

        java.lang.String getName()
        Obtains the name of item receiving the dependency.
        Returns:
        Name of item receiving the dependency.
      • getLogger

        java.util.logging.Logger getLogger()
        Obtains the Logger.
        Returns:
        Logger.
      • addEscalation

        <E extends java.lang.Throwable> void addEscalation​(java.lang.Class<E> escalationType)
        Registers an Escalation.
        Type Parameters:
        E - Escalation type.
        Parameters:
        escalationType - Type to be handled by an EscalationFlow.
      • addAnnotation

        void addAnnotation​(java.lang.Object annotation)
        Adds an annotation to the ManagedFunction / ManagedObject requiring the dependency.
        Parameters:
        annotation - Annotation.