Package 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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends IObject>
TgetInstance(java.lang.Class<T> klass)
Retrieves an instance.
-
-
-
Method Detail
-
getInstance
<T extends IObject> T getInstance(java.lang.Class<T> klass) throws ModelException
Retrieves an instance.- Parameters:
klass
- Instance's base class fromomero.model
.- Returns:
- Concrete instance of
klass
. - Throws:
ModelException
- If there is an error retrieving the instance.
-
-