org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.datasource
Class AbstractDataSourceFactory

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.base.ClassFactoryImpl
      extended by org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.datasource.AbstractDataSourceFactory
All Implemented Interfaces:
Serializable, ClassFactory, DataSourceFactory
Direct Known Subclasses:
DefaultDataSourceFactory

public abstract class AbstractDataSourceFactory
extends ClassFactoryImpl
implements DataSourceFactory

A base class for implementing the DataSourceFactory interface.

Author:
Thomas Morgner
See Also:
Serialized Form

Method Summary
 ObjectDescription getDataSourceDescription(String name)
          Returns a data source description.
 String getDataSourceName(ObjectDescription od)
          Returns a data source name given a description.
 Iterator getRegisteredNames()
          Returns the names of all registered datasources as iterator.
 void registerDataSources(String name, ObjectDescription o)
          Registers a data source.
 
Methods inherited from class org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.base.ClassFactoryImpl
configure, equals, getComparator, getConfig, getDescriptionForClass, getRegisteredClasses, getSuperClassObjectDescription, hashCode
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.base.ClassFactory
configure, equals, getDescriptionForClass, getRegisteredClasses, getSuperClassObjectDescription, hashCode
 

Method Detail

registerDataSources

public void registerDataSources(String name,
                                ObjectDescription o)
Registers a data source.

Parameters:
name - the name.
o - the object description.

getDataSourceDescription

public ObjectDescription getDataSourceDescription(String name)
Returns a data source description.

Specified by:
getDataSourceDescription in interface DataSourceFactory
Parameters:
name - the data source name.
Returns:
The object description.

getDataSourceName

public String getDataSourceName(ObjectDescription od)
Returns a data source name given a description.

Specified by:
getDataSourceName in interface DataSourceFactory
Parameters:
od - the object description.
Returns:
The name.

getRegisteredNames

public Iterator getRegisteredNames()
Returns the names of all registered datasources as iterator.

Specified by:
getRegisteredNames in interface DataSourceFactory
Returns:
the registered names.