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:
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.