public final class GatewayDataSourceRegistry
extends java.lang.Object
ReportDataSource
and then in a Gateway hook class, register it like
so:
GatewayDataSourceRegistry.get(context).register(myDataSource);
Created by carl.gould on 1/13/2015.
Constructor and Description |
---|
GatewayDataSourceRegistry() |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<ReportDataSource> |
findDataSource(java.lang.String id)
Look up the data source represented by the given id.
|
java.util.Optional<QuerySource> |
findQuerySource(java.lang.String id)
Look up the query source represented by the given id.
|
static GatewayDataSourceRegistry |
get(GatewayContext context) |
void |
register(QuerySource querySource)
Adds the given query source to the list of registered query sources
|
void |
register(ReportDataSource dataSource)
Adds the given data source to the list of registered data types
|
java.util.Optional<ReportDataSource> |
unregisterDataSource(java.lang.String id)
Removes the data source represented by the given id
|
java.util.Optional<QuerySource> |
unregisterQuerySource(java.lang.String id)
Removes the query source represented by the given id
|
public static GatewayDataSourceRegistry get(GatewayContext context)
public void register(ReportDataSource dataSource)
public java.util.Optional<ReportDataSource> unregisterDataSource(java.lang.String id)
public java.util.Optional<ReportDataSource> findDataSource(java.lang.String id)
public void register(QuerySource querySource)
public java.util.Optional<QuerySource> unregisterQuerySource(java.lang.String id)
public java.util.Optional<QuerySource> findQuerySource(java.lang.String id)