org.gcube.smartgears.configuration.application
Class ApplicationConfigurationBinder

java.lang.Object
  extended by org.gcube.smartgears.configuration.application.ApplicationConfigurationBinder

public class ApplicationConfigurationBinder
extends Object

Binds ApplicationConfigurations to and from XML serialisations.

Author:
Fabio Simeoni

Constructor Summary
ApplicationConfigurationBinder()
           
 
Method Summary
 ApplicationConfiguration bind(InputStream stream)
          Returns the application configuration from its XML serialisation.
 ApplicationExtensions bindExtensions(InputStream stream)
          Returns the extensions of the application from their XML serialisation.
 ApplicationHandlers bindHandlers(InputStream stream)
          Returns the handlers of the application from their XML serialisation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationConfigurationBinder

public ApplicationConfigurationBinder()
Method Detail

bind

public ApplicationConfiguration bind(InputStream stream)
Returns the application configuration from its XML serialisation.

Parameters:
stream - the serialisation
Returns:
the configuration
Throws:
RuntimeException - if the serialisation is invalid

bindHandlers

public ApplicationHandlers bindHandlers(InputStream stream)
Returns the handlers of the application from their XML serialisation.

Parameters:
stream - the serialisation
Returns:
the handlers
Throws:
RuntimeException - if the serialisation is invalid

bindExtensions

public ApplicationExtensions bindExtensions(InputStream stream)
Returns the extensions of the application from their XML serialisation.

Parameters:
stream - the serialisation
Returns:
the extensions
Throws:
RuntimeException - if the serialisation is invalid


Copyright © 2014. All Rights Reserved.