Class DesignerDataSourceRegistry


  • public final class DesignerDataSourceRegistry
    extends java.lang.Object
    This registry holds the data source configuration datasources that have been registered on the designer. Authors who want to create new reporting data sources or queries must register a DataSourceConfigFactory or QueryConfigFactory with this registry, as well as a ReportDataSource on the gateway.
    Since:
    7.8.0
    • Constructor Detail

      • DesignerDataSourceRegistry

        public DesignerDataSourceRegistry()
    • Method Detail

      • register

        public void register​(DataSourceConfigFactory factory)
        Register your data source config factory here.
      • register

        public void register​(QueryConfigFactory factory)
        Register your query type factory here
      • unregisterDataSource

        public com.google.common.base.Optional<DataSourceConfigFactory> unregisterDataSource​(java.lang.String id)
      • unregisterQueryType

        public com.google.common.base.Optional<QueryConfigFactory> unregisterQueryType​(java.lang.String id)
      • findDataSource

        public com.google.common.base.Optional<DataSourceConfigFactory> findDataSource​(java.lang.String id)
        Look up a datasource factory by ID
      • findQueryType

        public com.google.common.base.Optional<QueryConfigFactory> findQueryType​(java.lang.String id)
        Look up a query factory by ID
      • getDataSources

        public java.lang.Iterable<DataSourceConfigFactory> getDataSources()
        Find all of the datasources that have been registered
      • getQueryTypes

        public java.lang.Iterable<QueryConfigFactory> getQueryTypes()
        Find all of the query types that have been registered