|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.cpl.datasource.IlpDefaultDataSourceManager
public class IlpDefaultDataSourceManager
Defines a default implementation for the data source manager.
This default implementation maintains a collection of data sources. They are referenced through weak references that do not prevent garbage collection.
IlpDataSourceLoggers.ilog_cpl_datasource| Constructor Summary | |
|---|---|
IlpDefaultDataSourceManager()
Creates a new data source manager. |
|
| Method Summary | |
|---|---|
void |
addDataSource(IlpDataSource aDataSource)
Adds a data source to this manager. |
void |
addDataSourceManagerListener(DataSourceManagerListener listener)
Adds a listener to data source manager events. |
Collection |
getDataSources()
Returns the data sources created in the context of this data source manager. |
boolean |
hasDataSource(IlpDataSource aDataSource)
Returns true if the given data source belongs to this manager. |
void |
removeDataSource(IlpDataSource aDataSource)
Removes a data source from this manager. |
void |
removeDataSourceManagerListener(DataSourceManagerListener listener)
Removes the given listener from data source manager events. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlpDefaultDataSourceManager()
| Method Detail |
|---|
public Collection getDataSources()
getDataSources in interface IlpDataSourceManagerCollection containing the known data sources.IlpDataSourcepublic boolean hasDataSource(IlpDataSource aDataSource)
true if the given data source belongs to this manager.
hasDataSource in interface IlpDataSourceManageraDataSource - The data source being checked.
true if the data source belongs to the manager.
IllegalArgumentException - if the given data source is invalid.public void addDataSource(IlpDataSource aDataSource)
addDataSource in interface IlpMutableDataSourceManageraDataSource - The data source being added.public void removeDataSource(IlpDataSource aDataSource)
removeDataSource in interface IlpMutableDataSourceManageraDataSource - The data source to be removed.public void addDataSourceManagerListener(DataSourceManagerListener listener)
The listener will receive DataSourceManagerEvents whenever a
datasource is added or removed from this manager, through the use of methods
addDataSource and removeDataSource.
This data source manager implementation does not prevent data sources from being garbage collected. When a data source is removed through the garbage collection process, notifications are not sent to the listeners.
addDataSourceManagerListener in interface IlpMutableDataSourceManageraddDataSource(ilog.cpl.datasource.IlpDataSource),
removeDataSource(ilog.cpl.datasource.IlpDataSource)public void removeDataSourceManagerListener(DataSourceManagerListener listener)
removeDataSourceManagerListener in interface IlpMutableDataSourceManager
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||