Interface ObjectRegistry<O extends java.lang.Enum<O>>
-
- All Known Implementing Classes:
ManagedObjectUserStandAlone,ObjectRegistryImpl
public interface ObjectRegistry<O extends java.lang.Enum<O>>Registry providing the dependent Object instances for a
CoordinatingManagedObjectinstance.This is provided by the OfficeFloor implementation.
- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.ObjectgetObject(int index)Obtains the dependencyObjectby its index.java.lang.ObjectgetObject(O key)Obtains the dependencyObjectfor the dependency key.
-
-
-
Method Detail
-
getObject
java.lang.Object getObject(O key)
Obtains the dependencyObjectfor the dependency key.- Parameters:
key- Key identifying the dependencyObject.- Returns:
- Dependency
Objectfor the key.
-
getObject
java.lang.Object getObject(int index)
Obtains the dependency
Objectby its index.This enables a dynamic number of dependencies for the
ManagedObject.- Parameters:
index- Index identifying the dependencyObject.- Returns:
- Dependency
Objectfor the index.
-
-