Interface ObjectRegistry<O extends Enum<O>>

All Known Implementing Classes:
ManagedObjectUserStandAlone, ObjectRegistryImpl

public interface ObjectRegistry<O extends Enum<O>>

Registry providing the dependent Object instances for a CoordinatingManagedObject instance.

This is provided by the OfficeFloor implementation.

Author:
Daniel Sagenschneider
  • Method Summary

    Modifier and Type
    Method
    Description
    getObject(int index)
    Obtains the dependency Object by its index.
    getObject(O key)
    Obtains the dependency Object for the dependency key.
  • Method Details

    • getObject

      Object getObject(O key)
      Obtains the dependency Object for the dependency key.
      Parameters:
      key - Key identifying the dependency Object.
      Returns:
      Dependency Object for the key.
    • getObject

      Object getObject(int index)

      Obtains the dependency Object by its index.

      This enables a dynamic number of dependencies for the ManagedObject.

      Parameters:
      index - Index identifying the dependency Object.
      Returns:
      Dependency Object for the index.