Hi,
I'm trying to register a new ProcessFactory in order to generate a new
namespace for custom WPS proessess.
I've dug into wps-core and looked at the applicationContext.xml
>From that i've found that I should create a new marker interface for my
processes to inherit from them register a newly parametrized instance
of org.geoserver.wps.jts.SpringBeanProcessFactory
in my jar's applicationContext.xml below.
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
<bean id="nwsProcessFactory"
class="org.geoserver.wps.jts.SpringBeanProcessFactory">
<constructor-arg index="0" value="NWS specific processes"/>
<constructor-arg index="1" value="nws"/>
<constructor-arg index="2"
value="com.twc.geoserver.wps.NWSProcess"/>
</bean>
<bean id="ugcFeatureProcess"
class="com.twc.geoserver.wps.UGCFeatureProcess">
<constructor-arg ref="catalog"/>
</bean>
</beans>
The process is defined as such:
package ...
import ...
@DescribeProcess(
title = "UGC to Feature Converter",
description = "Converts a NOAA UGC code to corresponding features",
version = "1.0")
public class UGCFeatureProcess implements NWSProcess { ... }
But after all this I can't get the processes to register with the new
namespace. I have to revert the inheritance to GeoServerProcess...
Should this work? I saw earlier in the wps-core application context some
depends-on flags for WPSInfo relating to other bean factories. Is my
factory being instaniated too late to be captured?
Thanks much,
Tom.
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel