de.smartics.properties.impl.config.ds
Class DataSourceConfigurationPropertiesLoader

Package class diagram package DataSourceConfigurationPropertiesLoader
java.lang.Object
  extended by de.smartics.properties.impl.config.ds.DataSourceConfigurationPropertiesLoader
All Implemented Interfaces:
Serializable

public class DataSourceConfigurationPropertiesLoader
     
     
extends Object
implements Serializable

Responsible to read configuration properties to connect to a data source stored via JNDI.

See Also:
Serialized Form

Field Summary
static String CLASSPATH_LOCATION
          The location within the classpath to find the configuration file to load.
 
Constructor Summary
DataSourceConfigurationPropertiesLoader()
          Default constructor.
 
Method Summary
 DataSourceConfiguration load()
          Loads the data source configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASSPATH_LOCATION

public static final String CLASSPATH_LOCATION
The location within the classpath to find the configuration file to load.

Constant Field Value:
"META-INF/smartics-properties/boot/datasource.properties"
Constructor Detail

DataSourceConfigurationPropertiesLoader

public DataSourceConfigurationPropertiesLoader()
Default constructor.

Method Detail

load

public DataSourceConfiguration load()
                             throws IllegalStateException
Loads the data source configuration.

Returns:
the data source configuration.
Throws:
IllegalStateException - if the configuration cannot be loaded.


Copyright © 2012-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.