Class InstanceInjectableFactory


  • public class InstanceInjectableFactory
    extends java.lang.Object
    Constructs Injectables for a given object instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> Injectable<T> create​(T instance, java.lang.annotation.Annotation... qualifiers)
      Creates a new Injectable.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InstanceInjectableFactory

        public InstanceInjectableFactory​(InjectableFactory factory,
                                         java.lang.annotation.Annotation singleton)
        Constructs a new instance.
        Parameters:
        factory - a InjectableFactory, cannot be null
        singleton - a singleton annotation to use, cannot be null
    • Method Detail

      • create

        public <T> Injectable<T> create​(T instance,
                                        java.lang.annotation.Annotation... qualifiers)
                                 throws org.int4.dirk.api.definition.DefinitionException
        Creates a new Injectable.
        Type Parameters:
        T - the type of the given instance
        Parameters:
        instance - an instance, cannot be null
        qualifiers - an array of qualifier Annotations
        Returns:
        a new Injectable, never null
        Throws:
        org.int4.dirk.api.definition.DefinitionException - when a definition problem was encountered