org.geotools.arcsde.jndi
Class ArcSDEConnectionFactory

Object
  extended by ArcSDEConnectionFactory
All Implemented Interfaces:
ObjectFactory

public class ArcSDEConnectionFactory
extends Object
implements ObjectFactory

A ObjectFactory to create an ArcSDE connection pool to be JNDI managed.

This factory creates an ISessionPool out of the following mandatory parameters:

And the following optional parameters:

See the package documentation for further information on how to configure JNDI resources for ArcSDE on GeoTools.

Since:
2.5.7
Author:
Gabriel Roldan (OpenGeo)
Module:
modules/plugin/common (gt-common.jar)

Constructor Summary
ArcSDEConnectionFactory()
           
 
Method Summary
 ISessionPool getInstance(ArcSDEConnectionConfig config)
           
 ISessionPool getInstance(Map<String,String> properties)
           
 Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?,?> environment)
           
protected  String getProperty(Reference ref, String propName, String defValue)
           
 void setClosableSessionPoolFactory(ISessionPoolFactory newFactory)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArcSDEConnectionFactory

public ArcSDEConnectionFactory()
Method Detail

getObjectInstance

public Object getObjectInstance(Object obj,
                                Name name,
                                Context nameCtx,
                                Hashtable<?,?> environment)
                         throws Exception
Specified by:
getObjectInstance in interface ObjectFactory
Returns:
an ISessionPool ready to be shared (ie, per connection option singleton). Whether shared or not is a matter of external JNDI configuration.
Throws:
Exception
See Also:
ObjectFactory.getObjectInstance(Object, Name, Context, Hashtable)

getInstance

public ISessionPool getInstance(Map<String,String> properties)
                         throws IOException
Throws:
IOException

getInstance

public ISessionPool getInstance(ArcSDEConnectionConfig config)
                         throws IOException
Throws:
IOException

setClosableSessionPoolFactory

public void setClosableSessionPoolFactory(ISessionPoolFactory newFactory)

getProperty

protected String getProperty(Reference ref,
                             String propName,
                             String defValue)


Copyright © 1996-2010 Geotools. All Rights Reserved.