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
CoordinatingManagedObject
instance.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.Object
getObject(int index)
Obtains the dependencyObject
by its index.java.lang.Object
getObject(O key)
Obtains the dependencyObject
for the dependency key.
-
-
-
Method Detail
-
getObject
java.lang.Object getObject(O key)
Obtains the dependencyObject
for the dependency key.- Parameters:
key
- Key identifying the dependencyObject
.- Returns:
- Dependency
Object
for the key.
-
getObject
java.lang.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 dependencyObject
.- Returns:
- Dependency
Object
for the index.
-
-