ome.formats.model
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.

Author:
Chris Allan

Method Summary
<T extends omero.model.IObject>
T
getInstance(Class<T> klass)
          Retrieves an instance.
 

Method Detail

getInstance

<T extends omero.model.IObject> T getInstance(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.


OmeroJava Api

Version: 4.3.4-dbcbce5a-b4

Copyright © 2009 The University of Dundee. All Rights Reserved.