Interface InternalSupplier
-
public interface InternalSupplier
Exposes internal objects from the
SupplierSource
.Objects provided are not available to the
OfficeFloor
application for use (as they are considered private to theSupplierSource
).This, however, is available to enable the
AutoWireStateManager
to provide the object. Typically, this is to provide access for tests to manipulate internal objects.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isObjectAvailable(java.lang.String qualifier, java.lang.Class<?> objectType)
Indicates if the object by auto-wiring is available.<O> void
load(java.lang.String qualifier, java.lang.Class<? extends O> objectType, ObjectUser<O> user)
Loads the object asynchronously.
-
-
-
Method Detail
-
isObjectAvailable
boolean isObjectAvailable(java.lang.String qualifier, java.lang.Class<?> objectType)
Indicates if the object by auto-wiring is available.- Parameters:
qualifier
- Qualifier. May benull
.objectType
- Required object type.- Returns:
true
if the object is available.
-
load
<O> void load(java.lang.String qualifier, java.lang.Class<? extends O> objectType, ObjectUser<O> user) throws UnknownObjectException
Loads the object asynchronously.- Parameters:
qualifier
- Qualifier. May benull
.objectType
- Required object type.user
-ObjectUser
to receive the loaded object (or possible failure).- Throws:
UnknownObjectException
- If unknown bound object name.
-
-