Hi Nikolai,
You need to create a SpringBeanProcessFactory that extends
org.geoserver.wps.jts.SpringBeanProcessFactory.
Inside this class, create one constructor that uses the parent's one.
> public class SpringBeanProcessFactory extends
> org.geoserver.wps.jts.SpringBeanProcessFactory{
> SpringBeanProcessFactory(String s, String s2, Class<?> c){
> super(s,s2,c);
> }
> }
>
Also, create an empty interface with the name of your Process e.g.:
MyWPSProcess
Then, create (or under) the applicationContext.xml, create a "bean" tag and
put down the index values of the process:
> <bean id="mywpsProcessFactory"
> class="my.wps.package.SpringBeanProcessFactory">
> <constructor-arg index="0" value="My Custom WPS Processes"/>
> <constructor-arg index="1" value="mywps"/>
> <constructor-arg index="2"
> value="my.wps.package.MyWPSProcess"/>
> </bean>
>
The name (prefix) that will show up in GeoServer is at index='1'. So under
the wps builder you should see something like mywps:myprocess.
-----
ET
NGC SWE
US
--
View this message in context:
http://osgeo-org.1560.n6.nabble.com/Own-WPS-Process-Which-way-of-implementation-tp4376277p4376526.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users