Package fr.igred.omero.util
Class LibraryChecker
- java.lang.Object
-
- fr.igred.omero.util.LibraryChecker
-
public final class LibraryChecker extends 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 booleanareRequirementsAvailable()Checks if the required libraries are available.static booleancheckClass(String className)Checks whether the given class is available.static booleanisFormatsAPIAvailable()Checks if formats-api is available.static booleanisOMECommonAvailable()Checks if ome-common is available.static booleanisOMEROBlitzAvailable()Checks if OMERO Blitz is available.static booleanisOMEROGatewayAvailable()Checks if the omero-gateway is available.static booleanisOMEROModelAvailable()Checks if the omero-model is available.static booleanisOMEXMLAvailable()Checks if the omero-model is available.
-
-
-
Method Detail
-
areRequirementsAvailable
public static boolean areRequirementsAvailable()
Checks if the required libraries are available.- Returns:
trueif the libraries are available,falseotherwise.
-
isOMEROGatewayAvailable
public static boolean isOMEROGatewayAvailable()
Checks if the omero-gateway is available.- Returns:
trueif Gateway is available,falseotherwise.
-
isOMEROModelAvailable
public static boolean isOMEROModelAvailable()
Checks if the omero-model is available.- Returns:
trueif IObject is available,falseotherwise.
-
isOMEROBlitzAvailable
public static boolean isOMEROBlitzAvailable()
Checks if OMERO Blitz is available.- Returns:
trueif OMEROMetadataStoreClient is available,falseotherwise.
-
isOMEXMLAvailable
public static boolean isOMEXMLAvailable()
Checks if the omero-model is available.- Returns:
trueif IObject is available,falseotherwise.
-
isOMECommonAvailable
public static boolean isOMECommonAvailable()
Checks if ome-common is available.- Returns:
trueif DataTools is available,falseotherwise.
-
isFormatsAPIAvailable
public static boolean isFormatsAPIAvailable()
Checks if formats-api is available.- Returns:
trueif DefaultMetadataOptions is available,falseotherwise.
-
checkClass
public static boolean checkClass(String className)
Checks whether the given class is available.- Parameters:
className- The name of the class.- Returns:
trueif the class was found,falseotherwise.
-
-