If you're creating a new component, see Creating Components, but check here first as somebody else may have done what you want to.
You can find the Javadocs for the latest Aspire code at https://wiki.searchtechnologies.com/javadoc/aspire-latest/ Other versions can be found via https://wiki.searchtechnologies.com/javadoc/