Java Task Hook

The Java hook allows custom Java code to be executed.

Attributes

Attribute Name

Description

event

Valid values:

  • PreTask – Hook is triggered prior to the task initialization and object collection..

  • PostTask – Hook is triggered after the task has completed execution.

type

“CommandLineHook”

Parameters

Parameter Name

Description

class

The fully qualified name of the custom Java class. The custom Java class must implement the com.titania.css.engine.hook.IJavaHook interface and be located in the syncs Java classpath.

Example:

The following example details how to configure a Java task hook.

<Task name="Production" type="FolderSync">
	...
	<TaskHook event="PreTask" type="JavaHook">
	    <Param name="class" value="com.oberon.acme.css.SPSyncPreTaskHook"/>
	</TaskHook>				
</Task>