Interface InstanceProvider

  • All Known Implementing Classes:
    BlitzInstanceProvider

    public interface InstanceProvider
    An instance provider, whose job is to make OMERO Blitz classes available to a consumer based on a set of criteria. Fundamentally, concrete implementations are designed to isolate consumers from the semantics of OMERO Blitz model object instantiation.
    • Method Detail

      • getInstance

        <T extends IObject> T getInstance​(java.lang.Class<T> klass)
                                   throws ModelException
        Retrieves an instance.
        Parameters:
        klass - Instance's base class from omero.model.
        Returns:
        Concrete instance of klass.
        Throws:
        ModelException - If there is an error retrieving the instance.