Class DataSourceCollector

    • Constructor Detail

      • DataSourceCollector

        public DataSourceCollector()
        Creates a new factory.
    • Method Detail

      • addFactory

        public void addFactory​(DataSourceFactory factory)
        Adds a factory to the collection.
        factory - the factory.
      • getFactories

        public Iterator getFactories()
        Returns an iterator that provides access to the factories.
        The iterator.
      • getSuperClassObjectDescription

        public ObjectDescription getSuperClassObjectDescription​(Class d,
                                                                ObjectDescription knownSuperClass)
        Returns a description for the super class.
        Specified by:
        getSuperClassObjectDescription in interface ClassFactory
        d - the class.
        knownSuperClass - the last known super class for the given class or null if none was found yet.
        The object description suitable to create instances of the given class d.
      • getRegisteredClasses

        public Iterator getRegisteredClasses()
        Returns an iterator that provides access to the registered classes.
        Specified by:
        getRegisteredClasses in interface ClassFactory
        The iterator.
      • configure

        public void configure​(org.pentaho.reporting.libraries.base.config.Configuration config)
        Configures this factory. The configuration contains several keys and their defined values. The given reference to the configuration object will remain valid until the report parsing or writing ends.

        The configuration contents may change during the reporting.

        Specified by:
        configure in interface ClassFactory
        config - the configuration, never null
      • getConfig

        public org.pentaho.reporting.libraries.base.config.Configuration getConfig()
        Returns the currently set configuration or null, if none was set.
        the configuration.
      • getRegisteredNames

        public Iterator getRegisteredNames()
        Returns the names of all registered datasources as iterator.
        Specified by:
        getRegisteredNames in interface DataSourceFactory
        the registered names.