Class ContainerConfigurationBinder

java.lang.Object
org.gcube.smartgears.configuration.container.ContainerConfigurationBinder

public class ContainerConfigurationBinder extends Object
Binds ContainerConfigurations to and from XML serialisations.
Author:
Fabio Simeoni, Luca Frosini (ISTI-CNR)
  • Constructor Details

    • ContainerConfigurationBinder

      public ContainerConfigurationBinder()
  • Method Details

    • load

      public ContainerConfiguration load(InputStream stream)
      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

      public List<ContainerHandler> bindHandlers(ClassLoader classloader)
      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

      public SmartgearsConfiguration loadSmartgearsProperty()
      Loads SmartGears properties from the configuration file.
      Returns:
      the SmartGears configuration
      Throws:
      RuntimeException - if the configuration cannot be loaded