public class JNDIDataSourceFactory extends AbstractDataSourceFactorySpi
| Modifier and Type | Field and Description | 
|---|---|
| static DataAccessFactory.Param | DSTYPE | 
| static DataAccessFactory.Param | JNDI_REFNAME | 
| Constructor and Description | 
|---|
| JNDIDataSourceFactory() | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | canProcess(Map params)Test to see if this factory is suitable for processing the data pointed to by the params map. | 
| DataSource | createDataSource(Map params)Construct a live data source using the params specifed. | 
| DataSource | createNewDataSource(Map params)Same as  DataSourceFactorySpi.createDataSource(Map), but forces the creation of a new DataSource | 
| String | getDescription()Describe the nature of the data source constructed by this factory. | 
| DataAccessFactory.Param[] | getParametersInfo()MetaData about the required Parameters (for  DataSourceFactorySpi.createDataSource(Map)). | 
| boolean | isAvailable()Make sure a JNDI context is available | 
getDisplayName, getImplementationHintspublic static final DataAccessFactory.Param DSTYPE
public static final DataAccessFactory.Param JNDI_REFNAME
public DataSource createDataSource(Map params) throws IOException
DataSourceFactorySpiparams - The full set of information needed to construct a live DataSource.IOException - if there were any problems setting up (creating or connecting) the
     datasource.public boolean canProcess(Map params)
DataSourceFactorySpiIf this data source requires a number of parameters then this mehtod should check that they are all present and that they are all valid.
canProcess in interface DataSourceFactorySpicanProcess in class AbstractDataSourceFactorySpiparams - The full set of information needed to construct a live data source.public DataSource createNewDataSource(Map params) throws IOException
DataSourceFactorySpiDataSourceFactorySpi.createDataSource(Map), but forces the creation of a new DataSourceIOExceptionpublic String getDescription()
DataSourceFactorySpiA non localized description of this data store type.
public DataAccessFactory.Param[] getParametersInfo()
DataSourceFactorySpiDataSourceFactorySpi.createDataSource(Map)).public boolean isAvailable()
Copyright © 1996–2019 Geotools. All rights reserved.