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 the SupplierSource).
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
Modifier and TypeMethodDescriptionbooleanisObjectAvailable(String qualifier, Class<?> objectType) Indicates if the object by auto-wiring is available.<O> voidload(String qualifier, Class<? extends O> objectType, ObjectUser<O> user) Loads the object asynchronously.
-
Method Details
-
isObjectAvailable
Indicates if the object by auto-wiring is available.- Parameters:
qualifier- Qualifier. May benull.objectType- Required object type.- Returns:
trueif the object is available.
-
load
<O> void load(String qualifier, Class<? extends O> objectType, ObjectUser<O> user) throws UnknownObjectException Loads the object asynchronously.- Type Parameters:
O- Object type.- Parameters:
qualifier- Qualifier. May benull.objectType- Required object type.user-ObjectUserto receive the loaded object (or possible failure).- Throws:
UnknownObjectException- If unknown bound object name.
-