ome.formats.model
Class BlitzInstanceProvider

java.lang.Object
  extended by ome.formats.model.BlitzInstanceProvider
All Implemented Interfaces:
InstanceProvider

public class BlitzInstanceProvider
extends 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.

Author:
Chris Allan

Constructor Summary
BlitzInstanceProvider(EnumerationProvider enumProvider)
          Default constructor.
 
Method Summary
<T extends omero.model.IObject>
T
getInstance(Class<T> klass)
          Retrieves an instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlitzInstanceProvider

public BlitzInstanceProvider(EnumerationProvider enumProvider)
Default constructor.

Parameters:
enumProvider - Enumeration provider we are to use.
Method Detail

getInstance

public <T extends omero.model.IObject> T getInstance(Class<T> klass)
                                          throws ModelException
Description copied from interface: InstanceProvider
Retrieves an instance.

Specified by:
getInstance in interface InstanceProvider
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.3-00d1137e-b2894

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