Class IcatProvider

java.lang.Object
gda.data.metadata.icat.IcatProvider

public class IcatProvider extends Object
Provides the singleton Icat object. Only this class should be called from other packages.

To define which provider to use, set the java property Icat.ICAT_TYPE_PROP Icat.ICAT_TYPE_PROP.

Implementations of the Icat should be registered as extensions of Extension Point id "uk.ac.gda.core.icat"

  • Constructor Details

    • IcatProvider

      public IcatProvider()
  • Method Details

    • getInstance

      public static Icat getInstance() throws Exception
      Returns the singleton instance. If not already defined then uses the given IcatConnectionDetails when creating the singleton.
      Returns:
      a new Icat instance based on the given connection details
      Throws:
      Exception
    • deleteInstance

      public static void deleteInstance()
      clears the singleton instance, if it exists. Used to re-initialise the environment for testing.