| Context and Deployment Descriptor > The Context Services > Data Source Manager |
Data Source Manager |
INDEX
PREVIOUS
NEXT
|
The data source manager defined by the interface IlpDataSourceManager provides access to the data sources that it handles.
It provides the following methods:
getDataSources() Returns the data sources created in the context of this data source manager.
hasDataSource(IlpDataSource aDataSource) Returns true if the given data source belongs to this manager.
By default, the data source manager is implemented by the class IlpDefaultDataSourceManager. This default implementation maintains a collection of data sources which are referenced through weak references that do not prevent garbage collection.
IlpContext context = ... IlpDataSourceManager dsMgr = context.getDataSourceManager();
or
IlpDataSourceManager dsMgr = (IlpDataSourceMananger) context.getService(IlpDataSourceManager.class);
IlpDefaultContext context = ... IlpDataSourceManager dsMgr = MyDataSourceManager(); context.addService(IlpDataSourceManager.class, dsMgr);
| Copyright © 1987-2007 ILOG S.A. All rights reserved. Documentation homepage. All rights reserved. Legal terms. | PREVIOUS NEXT |