|
eXo Kernel :: Component :: Common Service 2.4.x-SNAPSHOT | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DataSourceProvider
This provider is used to get a DataSource in an uniform manner.
It allows to wrap the DataSource in case it is defined as managed
| Method Summary | |
|---|---|
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 |
| Method Detail |
|---|
DataSource getDataSource(String dataSourceName)
throws NamingException
NamingException
will be thrown
dataSourceName - the name of the data source to lookup
DataSource 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 check
true if the data source is managed,
false otherwise
|
eXo Kernel :: Component :: Common Service 2.4.x-SNAPSHOT | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||