Package fr.igred.omero.util
Class LibraryChecker
- java.lang.Object
-
- fr.igred.omero.util.LibraryChecker
-
public final class LibraryChecker extends java.lang.Object
Utility methods to check if required libraries/classes are available
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
areRequirementsAvailable()
Checks if the required libraries are available.static boolean
checkClass(java.lang.String className)
Checks whether the given class is available.static boolean
isFormatsAPIAvailable()
Checks if formats-api is available.static boolean
isOMECommonAvailable()
Checks if ome-common is available.static boolean
isOMEROBlitzAvailable()
Checks if OMERO Blitz is available.static boolean
isOMEROGatewayAvailable()
Checks if the omero-gateway is available.static boolean
isOMEROModelAvailable()
Checks if the omero-model is available.static boolean
isOMEXMLAvailable()
Checks if the omero-model is available.
-
-
-
Method Detail
-
areRequirementsAvailable
public static boolean areRequirementsAvailable()
Checks if the required libraries are available.- Returns:
true
if the libraries are available,false
otherwise.
-
isOMEROGatewayAvailable
public static boolean isOMEROGatewayAvailable()
Checks if the omero-gateway is available.- Returns:
true
if Gateway is available,false
otherwise.
-
isOMEROModelAvailable
public static boolean isOMEROModelAvailable()
Checks if the omero-model is available.- Returns:
true
if IObject is available,false
otherwise.
-
isOMEROBlitzAvailable
public static boolean isOMEROBlitzAvailable()
Checks if OMERO Blitz is available.- Returns:
true
if OMEROMetadataStoreClient is available,false
otherwise.
-
isOMEXMLAvailable
public static boolean isOMEXMLAvailable()
Checks if the omero-model is available.- Returns:
true
if IObject is available,false
otherwise.
-
isOMECommonAvailable
public static boolean isOMECommonAvailable()
Checks if ome-common is available.- Returns:
true
if DataTools is available,false
otherwise.
-
isFormatsAPIAvailable
public static boolean isFormatsAPIAvailable()
Checks if formats-api is available.- Returns:
true
if DefaultMetadataOptions is available,false
otherwise.
-
checkClass
public static boolean checkClass(java.lang.String className)
Checks whether the given class is available.- Parameters:
className
- The name of the class.- Returns:
true
if the class was found,false
otherwise.
-
-