Creating Non-Stage Components

Jump to: navigation, search

For Information on Aspire 3.1 Click Here

If you need to create a non stage component (such as a feeder), the easiest way is to follow the instructions for Creating a New Pipeline Stage and then convert it to a Component from a Stage.

Once you've imported the Stage in to Eclipse, do the following:

1. Change the class definition so that the class extends ComponentImpl rather than StageImpl:

 public class MyFeeder extends ComponentImpl {

2. Delete the process(Job j) method:

 public void process(Job j) throws AspireException {

3. Add the required functionality to the component.

4. Update the unit tests.

NOTE: If you are creating a feeder, you may wish to based it on the Simple Feeder.