Class ContainerConfigurationBinder
java.lang.Object
org.gcube.smartgears.configuration.container.ContainerConfigurationBinder
Binds
ContainerConfigurations to and from XML serialisations.- Author:
- Fabio Simeoni, Luca Frosini (ISTI-CNR)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbindHandlers(ClassLoader classloader) Returns the handlers of the container.load(InputStream stream) Loads container configuration from an input stream.Loads SmartGears properties from the configuration file.
-
Constructor Details
-
ContainerConfigurationBinder
public ContainerConfigurationBinder()
-
-
Method Details
-
load
Loads container configuration from an input stream.- Parameters:
stream- the input stream containing the configuration- Returns:
- the container configuration
- Throws:
RuntimeException- if the configuration cannot be loaded
-
bindHandlers
Returns the handlers of the container.- Parameters:
classloader- the class loader to use for loading handler classes- Returns:
- the handlers
- Throws:
RuntimeException- if the handlers cannot be loaded
-
loadSmartgearsProperty
Loads SmartGears properties from the configuration file.- Returns:
- the SmartGears configuration
- Throws:
RuntimeException- if the configuration cannot be loaded
-