Package org.h2.jdbcx
Class JdbcDataSourceFactory
java.lang.Object
org.h2.jdbcx.JdbcDataSourceFactory
- All Implemented Interfaces:
ObjectFactory
This class is used to create new DataSource objects.
An application should not use this class directly.
-
Constructor Summary
ConstructorDescriptionThe public constructor to create new factory objects. -
Method Summary
Modifier and TypeMethodDescriptiongetObjectInstance
(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment) Creates a new object using the specified location or reference information.static org.h2.message.TraceSystem
INTERNAL
-
Constructor Details
-
JdbcDataSourceFactory
public JdbcDataSourceFactory()The public constructor to create new factory objects.
-
-
Method Details
-
getObjectInstance
Creates a new object using the specified location or reference information.- Specified by:
getObjectInstance
in interfaceObjectFactory
- Parameters:
obj
- the reference (this factory only supports objects of type javax.naming.Reference)name
- unusednameCtx
- unusedenvironment
- unused- Returns:
- the new JdbcDataSource, or null if the reference class name is not JdbcDataSource.
-
getTraceSystem
public static org.h2.message.TraceSystem getTraceSystem()INTERNAL- Returns:
- TraceSystem
-