org.apache.openejb.resource.jdbc
Class DataSourceFactory

java.lang.Object
  extended by org.apache.openejb.resource.jdbc.DataSourceFactory

public class DataSourceFactory
extends Object

Version:
$Rev: 1431366 $ $Date: 2013-01-10 14:00:24 +0000 (Thu, 10 Jan 2013) $

Field Summary
static String DATA_SOURCE_CREATOR_PROP
           
static String GLOBAL_LOG_SQL_PROPERTY
           
static String LOG_SQL_PROPERTY
           
static String POOL_PROPERTY
           
 
Constructor Summary
DataSourceFactory()
           
 
Method Summary
static DataSource create(String name, boolean configuredManaged, Class impl, String definition, Duration maxWaitTime, Duration timeBetweenEvictionRuns, Duration minEvictableIdleTime)
           
static DataSourceCreator creator(Object creatorName, boolean willBeProxied)
           
static void destroy(Object o)
           
static org.apache.xbean.recipe.ObjectRecipe forgetRecipe(Object rawObject, org.apache.xbean.recipe.ObjectRecipe defaultValue)
           
static boolean knows(Object object)
           
static void trimNotSupportedDataSourceProperties(Properties properties)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG_SQL_PROPERTY

public static final String LOG_SQL_PROPERTY
See Also:
Constant Field Values

GLOBAL_LOG_SQL_PROPERTY

public static final String GLOBAL_LOG_SQL_PROPERTY
See Also:
Constant Field Values

POOL_PROPERTY

public static final String POOL_PROPERTY
See Also:
Constant Field Values

DATA_SOURCE_CREATOR_PROP

public static final String DATA_SOURCE_CREATOR_PROP
See Also:
Constant Field Values
Constructor Detail

DataSourceFactory

public DataSourceFactory()
Method Detail

create

public static DataSource create(String name,
                                boolean configuredManaged,
                                Class impl,
                                String definition,
                                Duration maxWaitTime,
                                Duration timeBetweenEvictionRuns,
                                Duration minEvictableIdleTime)
                         throws IllegalAccessException,
                                InstantiationException,
                                IOException
Throws:
IllegalAccessException
InstantiationException
IOException

creator

public static DataSourceCreator creator(Object creatorName,
                                        boolean willBeProxied)

trimNotSupportedDataSourceProperties

public static void trimNotSupportedDataSourceProperties(Properties properties)

knows

public static boolean knows(Object object)

forgetRecipe

public static org.apache.xbean.recipe.ObjectRecipe forgetRecipe(Object rawObject,
                                                                org.apache.xbean.recipe.ObjectRecipe defaultValue)

destroy

public static void destroy(Object o)
                    throws Throwable
Throws:
Throwable


Copyright © 1999-2013 The Apache Software Foundation. All Rights Reserved.