Top Description Constructors Methods
org.postgresql.xa

public Class PGXADataSourceFactory

extends PGObjectFactory
Class Inheritance
Imports
org.postgresql.ds.common.PGObjectFactory, org.checkerframework.checker.nullness.qual.Nullable, java.util.Hashtable, javax.naming.Context, .Name, .Reference

An ObjectFactory implementation for PGXADataSource-objects.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public @Nullable Object
getObjectInstance(Object
The possibly null object containing location or reference information that can be used in creating an object.
obj
,
Name
The name of this object relative to nameCtx, or null if no name is specified.
name
,
Context
The context relative to which the name parameter is specified, or null if name is relative to the default initial context.
nameCtx
,
Hashtable<?, ?>
The possibly null environment that is used in creating the object.
environment
)

Overrides org.postgresql.ds.common.PGObjectFactory.getObjectInstance.

Implements javax.naming.spi.ObjectFactory.getObjectInstance.

Dereferences a PostgreSQL DataSource.

private Object
Inherited from org.postgresql.ds.common.PGObjectFactory:
getPropertyloadBaseDataSource

Constructor Detail

PGXADataSourceFactoryback to summary
public PGXADataSourceFactory()

Method Detail

getObjectInstanceback to summary
public @Nullable Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment) throws Exception

Overrides org.postgresql.ds.common.PGObjectFactory.getObjectInstance.

Implements javax.naming.spi.ObjectFactory.getObjectInstance.

Doc from org.postgresql.ds.common.PGObjectFactory.getObjectInstance.

Dereferences a PostgreSQL DataSource. Other types of references are ignored.

Parameters
obj:Object

Doc from javax.naming.spi.ObjectFactory.getObjectInstance.

The possibly null object containing location or reference information that can be used in creating an object.

name:Name

Doc from javax.naming.spi.ObjectFactory.getObjectInstance.

The name of this object relative to nameCtx, or null if no name is specified.

nameCtx:Context

Doc from javax.naming.spi.ObjectFactory.getObjectInstance.

The context relative to which the name parameter is specified, or null if name is relative to the default initial context.

environment:Hashtable<?, ?>

Doc from javax.naming.spi.ObjectFactory.getObjectInstance.

The possibly null environment that is used in creating the object.

Returns:@Nullable Object

Doc from javax.naming.spi.ObjectFactory.getObjectInstance.

The object created; null if an object cannot be created.

Annotations
@Override
Exceptions
Exception:

Doc from javax.naming.spi.ObjectFactory.getObjectInstance.

if this object factory encountered an exception while attempting to create an object, and no other object factories are to be tried.

loadXADataSourceback to summary
private Object loadXADataSource(Reference ref)