SMILA (incubation) API documentation

org.eclipse.smila.connectivity.framework.schema
Class ConfigurationLoader

java.lang.Object
  extended by org.eclipse.smila.connectivity.framework.schema.ConfigurationLoader

public final class ConfigurationLoader
extends java.lang.Object

The Class ConfigurationLoader.


Method Summary
static javax.xml.bind.Marshaller crateMarshaller(DataSourceConnectionConfig configuration)
          Crate marshaller.
static DataSourceConnectionConfigPlugin getPlugin(java.lang.String id)
          Gets the plugin by id.
static void marshall(DataSourceConnectionConfig configuration, java.io.Writer writer)
          Marshall.
static javax.xml.bind.JAXBContext newContext(java.lang.String bundleID)
          New context.
static DataSourceConnectionConfig unmarshall(java.io.InputStream is)
          Unmarshall index order configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newContext

public static javax.xml.bind.JAXBContext newContext(java.lang.String bundleID)
                                             throws SchemaNotFoundException
New context.

Parameters:
bundleID - the bundle id
Returns:
the jAXB context
Throws:
SchemaNotFoundException - the index order schema not found exception

unmarshall

public static DataSourceConnectionConfig unmarshall(java.io.InputStream is)
                                             throws javax.xml.bind.JAXBException,
                                                    java.io.IOException,
                                                    SchemaNotFoundException
Unmarshall index order configuration.

Parameters:
is - xml input stream
Returns:
index order configuration
Throws:
javax.xml.bind.JAXBException - the JAXB exception
java.io.IOException - Signals that an I/O exception has occurred.
SchemaNotFoundException - the index order schema not found exception

crateMarshaller

public static javax.xml.bind.Marshaller crateMarshaller(DataSourceConnectionConfig configuration)
                                                 throws javax.xml.bind.JAXBException,
                                                        SchemaNotFoundException
Crate marshaller.

Parameters:
configuration - the configuration
Returns:
the marshaller
Throws:
javax.xml.bind.JAXBException - the JAXB exception
SchemaNotFoundException - the index order schema not found exception

marshall

public static void marshall(DataSourceConnectionConfig configuration,
                            java.io.Writer writer)
                     throws javax.xml.bind.JAXBException,
                            SchemaNotFoundException
Marshall.

Parameters:
configuration - the configuration
writer - the writer
Throws:
javax.xml.bind.JAXBException - the JAXB exception
SchemaNotFoundException - the index order schema not found exception

getPlugin

public static DataSourceConnectionConfigPlugin getPlugin(java.lang.String id)
Gets the plugin by id.

Parameters:
id - the id
Returns:
the plugin

SMILA (incubation) API documentation