public interface DataSourceProvider
DataSource in an uniform manner.
It allows to wrap the DataSource in case it is defined as managed| Modifier and Type | Method and Description |
|---|---|
DataSource |
getDataSource(String dataSourceName)
Try to get the data source from a lookup, if it can't a
NamingException
will be thrown |
boolean |
isManaged(String dataSourceName)
Indicates whether or not the given data source is managed
|
DataSource getDataSource(String dataSourceName) throws NamingException
NamingException
will be throwndataSourceName - the name of the data source to lookupDataSource found thanks to the lookup. The original
object could be wrap to another DataSource in order to support
managed data source.NamingException - if the data source could not be foundboolean isManaged(String dataSourceName)
dataSourceName - the data source to checktrue if the data source is managed,
false otherwiseCopyright © 2014 eXo Platform SAS. All Rights Reserved.