Package org.h2.jdbcx
Class JdbcDataSourceFactory
- java.lang.Object
-
- org.h2.jdbcx.JdbcDataSourceFactory
-
- All Implemented Interfaces:
javax.naming.spi.ObjectFactory
public final class JdbcDataSourceFactory extends java.lang.Object implements javax.naming.spi.ObjectFactory
This class is used to create new DataSource objects. An application should not use this class directly.
-
-
Field Summary
Fields Modifier and Type Field Description private Trace
trace
private static TraceSystem
traceSystem
-
Constructor Summary
Constructors Constructor Description JdbcDataSourceFactory()
The public constructor to create new factory objects.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getObjectInstance(java.lang.Object obj, javax.naming.Name name, javax.naming.Context nameCtx, java.util.Hashtable<?,?> environment)
Creates a new object using the specified location or reference information.(package private) Trace
getTrace()
static TraceSystem
getTraceSystem()
INTERNAL
-
-
-
Field Detail
-
traceSystem
private static final TraceSystem traceSystem
-
trace
private final Trace trace
-
-
Method Detail
-
getObjectInstance
public java.lang.Object getObjectInstance(java.lang.Object obj, javax.naming.Name name, javax.naming.Context nameCtx, java.util.Hashtable<?,?> environment)
Creates a new object using the specified location or reference information.- Specified by:
getObjectInstance
in interfacejavax.naming.spi.ObjectFactory
- 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 TraceSystem getTraceSystem()
INTERNAL- Returns:
- TraceSystem
-
getTrace
Trace getTrace()
-
-