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 Type
    Method
    Description
    boolean
    isObjectAvailable(String qualifier, Class<?> objectType)
    Indicates if the object by auto-wiring is available.
    <O> void
    load(String qualifier, Class<? extends O> objectType, ObjectUser<O> user)
    Loads the object asynchronously.
  • Method Details

    • isObjectAvailable

      boolean isObjectAvailable(String qualifier, Class<?> objectType)
      Indicates if the object by auto-wiring is available.
      Parameters:
      qualifier - Qualifier. May be null.
      objectType - Required object type.
      Returns:
      true if 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 be null.
      objectType - Required object type.
      user - ObjectUser to receive the loaded object (or possible failure).
      Throws:
      UnknownObjectException - If unknown bound object name.