java.lang.Object
com.endeca.cas.extension.PipelineComponent<R,C>
com.endeca.cas.extension.DataSource<R,C>
public abstract class DataSource<R extends DataSourceRuntime,C extends PipelineComponentConfiguration<C>>
- extends PipelineComponent<R,C>
A CAS extension for acquiring data from a data source. Implementations must
be annotated with the CasDataSource
annotation and have a zero argument constructor.
CAS creates exactly one instance of the DataSource
at start-up time and will call
createDataSourceRuntime
to create a runtime object each time an acquisition is started.
- See Also:
CasDataSource
,
DataSourceRuntime
,
PipelineComponentConfiguration
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataSource
public DataSource()
createDataSourceRuntime
public abstract R createDataSourceRuntime(C configuration,
PipelineComponentRuntimeContext context)
throws PipelineInitializationException
- Creates a runtime instance of this extension.
- Parameters:
configuration
- the configuration to be used in the new runtimecontext
- the context to use in the new runtime
- Returns:
- a new instance of a
DataSourceRuntime
- Throws:
PipelineInitializationException
- if creation of the DataSourceRuntime
failed.
Copyright © 2007, 2012, Oracle and/or its affiliates. All rights reserved.