de.smartics.properties.spi.config.ds
Class JndiDataSourceProxy

Package class diagram package JndiDataSourceProxy
java.lang.Object
  extended by de.smartics.properties.spi.config.ds.JndiDataSourceProxy
All Implemented Interfaces:
DataSourceProxy, Serializable

public final class JndiDataSourceProxy
     
     
extends Object
implements DataSourceProxy

An implementation using JNDI.

See Also:
Serialized Form

Constructor Summary
JndiDataSourceProxy(String mappedName)
          Default constructor.
 
Method Summary
 DataSource getDataSource()
          Provides access to the data source.
 String getDataSourceId()
          Returns the identifier of the data source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JndiDataSourceProxy

public JndiDataSourceProxy(String mappedName)
                    throws NamingException
Default constructor.

Parameters:
mappedName - the JNDI name to access the data source.
Throws:
NamingException - if the data source cannot be fetched by the given name.
Method Detail

getDataSourceId

public String getDataSourceId()
Description copied from interface: DataSourceProxy
Returns the identifier of the data source.

Specified by:
getDataSourceId in interface DataSourceProxy
Returns:
the identifier of the data source.

getDataSource

public DataSource getDataSource()
Description copied from interface: DataSourceProxy
Provides access to the data source.

Specified by:
getDataSource in interface DataSourceProxy
Returns:
the data source.


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