Package gda.data.metadata.icat
Class IcatProvider
java.lang.Object
gda.data.metadata.icat.IcatProvider
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidclears the singleton instance, if it exists.static IcatReturns the singleton instance.
-
Constructor Details
-
IcatProvider
public IcatProvider()
-
-
Method Details
-
getInstance
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.
-