Class ObjectRegistryImpl<O extends java.lang.Enum<O>>

  • All Implemented Interfaces:
    ObjectRegistry<O>

    public class ObjectRegistryImpl<O extends java.lang.Enum<O>>
    extends java.lang.Object
    implements ObjectRegistry<O>
    Implementation of the ObjectRegistry.
    Author:
    Daniel Sagenschneider
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getObject​(int index)
      Obtains the dependency Object by its index.
      java.lang.Object getObject​(O key)
      Obtains the dependency Object for the dependency key.
      • Methods inherited from class java.lang.Object

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

      • getObject

        public java.lang.Object getObject​(O key)
        Description copied from interface: ObjectRegistry
        Obtains the dependency Object for the dependency key.
        Specified by:
        getObject in interface ObjectRegistry<O extends java.lang.Enum<O>>
        Parameters:
        key - Key identifying the dependency Object.
        Returns:
        Dependency Object for the key.
      • getObject

        public java.lang.Object getObject​(int index)
        Description copied from interface: ObjectRegistry

        Obtains the dependency Object by its index.

        This enables a dynamic number of dependencies for the ManagedObject.

        Specified by:
        getObject in interface ObjectRegistry<O extends java.lang.Enum<O>>
        Parameters:
        index - Index identifying the dependency Object.
        Returns:
        Dependency Object for the index.