Class OfficeFloorDependencies


  • public class OfficeFloorDependencies
    extends java.lang.Object
    Dependencies available from OfficeFloor.
    Author:
    Daniel Sagenschneider
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getDependency​(java.lang.reflect.AnnotatedElement annotatedElement)
      Obtains the dependency for the Injectee.
      void registerFieldDependency​(java.lang.reflect.Field field, java.lang.Object dependency)
      Registers a Field dependency.
      • Methods inherited from class java.lang.Object

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

      • OfficeFloorDependencies

        public OfficeFloorDependencies()
    • Method Detail

      • registerFieldDependency

        public void registerFieldDependency​(java.lang.reflect.Field field,
                                            java.lang.Object dependency)
        Registers a Field dependency.
        Parameters:
        field - Field.
        dependency - Dependency.
      • getDependency

        public java.lang.Object getDependency​(java.lang.reflect.AnnotatedElement annotatedElement)
        Obtains the dependency for the Injectee.
        Parameters:
        annotatedElement - AnnotatedElement. Will gracefully handle null.
        Returns:
        Dependency or null if not matched.