public class PGObjectFactory extends Object implements ObjectFactory
Constructor and Description |
---|
PGObjectFactory() |
Modifier and Type | Method and Description |
---|---|
Object |
getObjectInstance(Object obj,
Name name,
Context nameCtx,
Hashtable<?,?> environment)
Dereferences a PostgreSQL DataSource.
|
protected String |
getProperty(Reference ref,
String s) |
protected Object |
loadBaseDataSource(BaseDataSource ds,
Reference ref) |
public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?,?> environment) throws Exception
getObjectInstance
in interface ObjectFactory
obj
- The possibly null object containing location or reference
information that can be used in creating an object.name
- The name of this object relative to nameCtx
,
or null if no name is specified.nameCtx
- The context relative to which the name
parameter is specified, or null if name
is
relative to the default initial context.environment
- The possibly null environment that is used in
creating the object.Exception
- if this object factory encountered an exception
while attempting to create an object, and no other object factories are
to be tried.NamingManager.getObjectInstance(java.lang.Object, javax.naming.Name, javax.naming.Context, java.util.Hashtable<?, ?>)
,
NamingManager.getURLContext(java.lang.String, java.util.Hashtable<?, ?>)
protected Object loadBaseDataSource(BaseDataSource ds, Reference ref)
Copyright © 2020 PostgreSQL Global Development Group. All rights reserved.