You can use this project skeleton to develop WPS extension processes (algorithms), parsers for process inputs and generators of process outputs using Java.
More information is available at the 52°North Geoprocessing Community.
There are two steps which you need to fulfill
- Copy the resulting jar to (WPS-deployment-directory)/WEB-INF/lib
- Add your new Algorithms to the WPS config (in (WPS-deployment-directory)/config/wps_config.xml)
The second step could look like:
...
<Repository name="LocalAlgorithmRepository"
className="org.n52.wps.server.LocalAlgorithmRepository" active="true">
<Property name="Algorithm" active="true">org.n52.wps.extension.ExtensionAlgorithm</Property>
<Property name="Algorithm" active="true">org.n52.wps.extension.AnnotatedExtensionAlgorithm</Property>
<Property name="Algorithm" active="true">org.n52.wps.server.algorithm.SimpleBufferAlgorithm</Property>
...
</Repository>
...
If you add the fully qualified name of you algorithm to the file:
/META-INF/services/org.n52.wps.server.IAlgorithm
and drop the jar to (WPS-deployment-directory)/WEB-INF/lib, your algorithm will be added to the WPS automatically.