Interface InternalSupplier
-
public interface InternalSupplierExposes internal objects from the
SupplierSource.Objects provided are not available to the
OfficeFloorapplication for use (as they are considered private to theSupplierSource).This, however, is available to enable the
AutoWireStateManagerto 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 booleanisObjectAvailable(java.lang.String qualifier, java.lang.Class<?> objectType)Indicates if the object by auto-wiring is available.<O> voidload(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:
trueif the object is available.
-
load
<O> void load(java.lang.String qualifier, java.lang.Class<? extends O> objectType, ObjectUser<O> user) throws UnknownObjectExceptionLoads the object asynchronously.- 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.
-
-