com.espertech.esper.client
Class ConfigurationDBRef.DataSourceFactory

java.lang.Object
  extended by com.espertech.esper.client.ConfigurationDBRef.DataSourceFactory
All Implemented Interfaces:
ConfigurationDBRef.ConnectionFactoryDesc, java.io.Serializable
Enclosing class:
ConfigurationDBRef

public static class ConfigurationDBRef.DataSourceFactory
extends java.lang.Object
implements ConfigurationDBRef.ConnectionFactoryDesc, java.io.Serializable

Connection factory settings for using a Apache DBCP or other provider DataSource factory.

See Also:
Serialized Form

Constructor Summary
ConfigurationDBRef.DataSourceFactory(java.util.Properties properties, java.lang.String factoryClassname)
          Ctor.
 
Method Summary
 void addProperty(java.lang.String name, java.lang.String value)
          Adds a property.
 java.lang.String getFactoryClassname()
          Returns the class name of the data source factory.
 java.util.Properties getProperties()
          Returns the properties to pass to the static createDataSource method provided.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationDBRef.DataSourceFactory

public ConfigurationDBRef.DataSourceFactory(java.util.Properties properties,
                                            java.lang.String factoryClassname)
Ctor.

Parameters:
properties - to pass to the data source factory
factoryClassname - the class name of the data source factory
Method Detail

getProperties

public java.util.Properties getProperties()
Returns the properties to pass to the static createDataSource method provided.

Returns:
properties to pass to createDataSource

getFactoryClassname

public java.lang.String getFactoryClassname()
Returns the class name of the data source factory.

Returns:
fully qualified class name

addProperty

public void addProperty(java.lang.String name,
                        java.lang.String value)
Adds a property.

Parameters:
name - key
value - value of property

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com