All Implemented Interfaces:
Provider<ObjectCollection>

public class Reference extends ObjectCollectionProvider
An ObjectCollectionProvider that references an existing ObjectCollection by its identifier.
  • Constructor Details

    • Reference

      public Reference(String id)
      Creates a new Reference with the specified identifier.
      Parameters:
      id - the identifier of the object collection to reference
    • Reference

      public Reference()
  • Method Details

    • get

      Description copied from interface: Provider
      Gets or creates an object of type T.
      Returns:
      the object returned by the provider.
      Throws:
      ProvisionFailedException - if the object cannot be returned.
    • getId

      public String getId()
      The identifier of the object collection to reference.
    • setId

      public void setId(String id)
      The identifier of the object collection to reference.