jsynoptic.data
Class ExpressionDataSourceProvider

java.lang.Object
  extended by jsynoptic.data.ExpressionDataSourceProvider
All Implemented Interfaces:
DataSourceProvider

public class ExpressionDataSourceProvider
extends java.lang.Object
implements DataSourceProvider

Used in serializing/deserializing expression data sources


Nested Class Summary
static class ExpressionDataSourceProvider.ConflictListCellRenderer
           
protected static class ExpressionDataSourceProvider.ConflictListModel
           
protected static class ExpressionDataSourceProvider.VariableConflict
           
 
Field Summary
static java.util.ResourceBundle resources
           
 
Constructor Summary
ExpressionDataSourceProvider()
           
 
Method Summary
 java.lang.Object getOptionalInformation(DataSource ds, DataSourceCollection dsc)
          Asks this provider some optional information about a datasource and possibly its collection.
 DataSource provide(java.lang.String id, java.lang.String dscId, java.lang.Object optionalInformation, DataSourcePool pool)
          Asks this provider to resolve a symbolic datasource reference.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resources

public static java.util.ResourceBundle resources
Constructor Detail

ExpressionDataSourceProvider

public ExpressionDataSourceProvider()
Method Detail

getOptionalInformation

public java.lang.Object getOptionalInformation(DataSource ds,
                                               DataSourceCollection dsc)
Description copied from interface: DataSourceProvider
Asks this provider some optional information about a datasource and possibly its collection.

Specified by:
getOptionalInformation in interface DataSourceProvider
Parameters:
ds - The datasource
dsc - The datasource collection, or null.
Returns:
null if this provider cannot provide optional information, an arbitrary object otherwise.

provide

public DataSource provide(java.lang.String id,
                          java.lang.String dscId,
                          java.lang.Object optionalInformation,
                          DataSourcePool pool)
Description copied from interface: DataSourceProvider
Asks this provider to resolve a symbolic datasource reference.

Specified by:
provide in interface DataSourceProvider
Parameters:
id - The symbolic id of a datasource
dscId - The symbolic id of a datasourceCollection. May be null
optionalInformation - Can be set to help this provider. May be null
pool - DataSourcePool in which to add the source and collection if they can be provided. May be null.
Returns:
The desired datasource if it can be provided, or null.