Nuxeo Enterprise Platform 5.4

org.nuxeo.runtime.datasource
Class DataSourceFactory

java.lang.Object
  extended by org.nuxeo.runtime.datasource.DataSourceFactory
All Implemented Interfaces:
ObjectFactory

public class DataSourceFactory
extends Object
implements ObjectFactory

JNDI factory for a DataSource that delegates to an Apache DBCP pool.

An instance of this class is registered in JNDI for each datasource configured by the DataSourceComponent.


Constructor Summary
DataSourceFactory()
           
 
Method Summary
 Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?,?> env)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSourceFactory

public DataSourceFactory()
Method Detail

getObjectInstance

public Object getObjectInstance(Object obj,
                                Name name,
                                Context nameCtx,
                                Hashtable<?,?> env)
                         throws Exception
Specified by:
getObjectInstance in interface ObjectFactory
Throws:
Exception

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.