public class DataSourceCollector extends Object implements DataSourceFactory
DataSourceFactory
created from a number of other factories.Constructor and Description |
---|
DataSourceCollector()
Creates a new factory.
|
Modifier and Type | Method and Description |
---|---|
void |
addFactory(DataSourceFactory factory)
Adds a factory to the collection.
|
void |
configure(org.pentaho.reporting.libraries.base.config.Configuration config)
Configures this factory.
|
org.pentaho.reporting.libraries.base.config.Configuration |
getConfig()
Returns the currently set configuration or null, if none was set.
|
ObjectDescription |
getDataSourceDescription(String name)
Returns a data source description.
|
String |
getDataSourceName(ObjectDescription od)
Returns a data source name.
|
ObjectDescription |
getDescriptionForClass(Class c)
Returns a description for the class.
|
Iterator |
getFactories()
Returns an iterator that provides access to the factories.
|
Iterator |
getRegisteredClasses()
Returns an iterator that provides access to the registered classes.
|
Iterator |
getRegisteredNames()
Returns the names of all registered datasources as iterator.
|
ObjectDescription |
getSuperClassObjectDescription(Class d,
ObjectDescription knownSuperClass)
Returns a description for the super class.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals, hashCode
public void addFactory(DataSourceFactory factory)
factory
- the factory.public Iterator getFactories()
public ObjectDescription getDataSourceDescription(String name)
getDataSourceDescription
in interface DataSourceFactory
name
- the data source name.public String getDataSourceName(ObjectDescription od)
getDataSourceName
in interface DataSourceFactory
od
- the object description.public ObjectDescription getDescriptionForClass(Class c)
getDescriptionForClass
in interface ClassFactory
c
- the class.public ObjectDescription getSuperClassObjectDescription(Class d, ObjectDescription knownSuperClass)
getSuperClassObjectDescription
in interface ClassFactory
d
- the class.knownSuperClass
- the last known super class for the given class or null if none was found yet.public Iterator getRegisteredClasses()
getRegisteredClasses
in interface ClassFactory
public void configure(org.pentaho.reporting.libraries.base.config.Configuration config)
configure
in interface ClassFactory
config
- the configuration, never nullpublic org.pentaho.reporting.libraries.base.config.Configuration getConfig()
public Iterator getRegisteredNames()
getRegisteredNames
in interface DataSourceFactory