Class ConfigurationManager
java.lang.Object
org.gcube.spatial.data.geonetwork.configuration.ConfigurationManager
Manager for configuration instances.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Configurationget()Gets a new instance of the configured Configuration class.static voidsetConfiguration(Class<? extends Configuration> configuration) Sets the Configuration class to be used.
-
Constructor Details
-
ConfigurationManager
public ConfigurationManager()
-
-
Method Details
-
get
Gets a new instance of the configured Configuration class.- Returns:
- a new Configuration instance
- Throws:
InstantiationException- if the class cannot be instantiatedIllegalAccessException- if the class or its constructor is not accessible
-
setConfiguration
Sets the Configuration class to be used.- Parameters:
configuration- the Configuration class
-