Class 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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T extends IObject>
      T
      getInstance​(java.lang.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 IObject> T getInstance​(java.lang.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.