Package ome.formats.model
Class BlitzInstanceProvider
- java.lang.Object
-
- ome.formats.model.BlitzInstanceProvider
-
- All Implemented Interfaces:
InstanceProvider
public class BlitzInstanceProvider extends java.lang.Object implements InstanceProvider
An instance provider which uses reflection to fulfill the contract of an InstanceProvider. Its main feature is the delegation of class specific logic to handlers. OME data model enumeration not-null constraints, for example.
-
-
Constructor Summary
Constructors Constructor Description BlitzInstanceProvider(EnumerationProvider enumProvider)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends IObject>
TgetInstance(java.lang.Class<T> klass)
Retrieves an instance.
-
-
-
Constructor Detail
-
BlitzInstanceProvider
public BlitzInstanceProvider(EnumerationProvider enumProvider)
Default constructor.- Parameters:
enumProvider
- Enumeration provider we are to use.
-
-
Method Detail
-
getInstance
public <T extends IObject> T getInstance(java.lang.Class<T> klass) throws ModelException
Description copied from interface:InstanceProvider
Retrieves an instance.- Specified by:
getInstance
in interfaceInstanceProvider
- Parameters:
klass
- Instance's base class fromomero.model
.- Returns:
- Concrete instance of
klass
. - Throws:
ModelException
- If there is an error retrieving the instance.
-
-