Sesat > Docs + Support > Development using the SFC > HOWTO develop a RunHandler

HOWTO implement a RunHandler

POJO to hold configuration: AbcRunHandlerConfig.java

Create AbcRunHandlerConfig.java in run-handler-config project.
Implement getter and setters to store configurable options.

Controlling class: AbcRunHandler.java

Create AbcRunHandler.java in run-handler-control project.
Implement the handleRunningQuery method.

Configuration: modes.xml//modes/mode/run-handlers

Add the run-handler to the mode you wish it to be applicable to.
For example:

<modes>
 <mode>
  <run-handlers>
   <abc bean-property-1="someValue" bean-property-2="someValue"/>
  </run-handlers>
 </mode>
</modes>

The name of the element inside <run-handlers> is the name of the configuration POJO minux the RunHandlerConfig suffix, and with CamelCase translated to typical xml format camel-case.

TroubleShooting

  1. Make sure both run-handler-config & run-handler-control jars are bundled into your skin. For example inside the war like
     genericno.sesam.no!WEB-INF/lib/genericno.sesam.no-run-handler-config-2.18-SNAPSHOT.jar 
    genericno.sesam.no!WEB-INF/lib/genericno.sesam.no-run-handler-control-2.18-SNAPSHOT.jar 
 © 2007-2009 Schibsted ASA
Contact us