Adding a custom QueryFunction to a custom component project

If you just want to use a custom QueryFunction in a specific custom component, you add its .jar file to the component's Eclipse build path.

To add the QueryFunction to a custom component project:

  1. In Eclipse, right-click the component project, then select Build Path > Configure Build Path.
  2. Click the Libraries tab.
  3. Click Add Variable.
  4. Select DF_GLOBAL_LIB.

    You should have added this variable when you set up the Component SDK. See Preparing your system for Component SDK development.

  5. Click Extend.
  6. Open the ext/ directory.
  7. Select the .jar file for your custom QueryFunction.
  8. Click OK.

After adding the .jar file to the build path, you can import the class, and use your custom QueryFilter or QueryConfig to modify your QueryState.