Connection-based external resource
<!--
If you are defining your resource in a separate bundle, grab a reference to the IDatabaseConnectionAnalyzer
for steps provided by the core pentaho-metaverse bundle.
This will be injected into analyzer (TableOutputStepAnalyzer)
-->
<reference id="stepDatabaseConnectionAnalyzerRef"
interface="org.pentaho.metaverse.api.analyzer.kettle.IDatabaseConnectionAnalyzer"
component-name="stepDatabaseConnectionAnalyzer"
availability="mandatory"/>
<!--
Declare our sample analyzer(TableOutputStepAnalyzer) bean. Inject the stepDatabaseConnectionAnalyzer so it can
use the same one that the TableOutputStepAnalyzer uses.
-->
<bean id="tableOutputStepAnalyzer" class="org.pentaho.metaverse.analyzer.kettle.step.tableoutput.TableOutputStepAnalyzer">
<property name="connectionAnalyzer" ref="stepDatabaseConnectionAnalyzerRef"/>
<property name="externalResourceConsumer" ref="tableOutputERC"/>
</bean>
<!--
Define our analyzer as a service. This will allow it to be automatically added to the reference-list ultimately used
by the TransformationAnalyzer to determine if there is a custom analyzer for a particular BaseStepMeta impl
(TableOutputMeta in this case).
-->
<service id="tableOutputStepAnalyzerService"
interface="org.pentaho.metaverse.api.analyzer.kettle.step.IStepAnalyzer"
ref="tableOutputStepAnalyzer"/>
<!-- Configure the TableOutputExternalResourceConsumer and service -->
<bean id="tableOutputERC" scope="singleton"
class="org.pentaho.metaverse.analyzer.kettle.step.tableoutput.TableOutputExternalResourceConsumer"/>
<service id="tableOutputERCService"
interface="org.pentaho.metaverse.api.analyzer.kettle.step.IStepExternalResourceConsumer"
ref="tableOutputERC"/>Last updated
Was this helpful?

