SmartFrog 3.10.000

Interface PrimHook

public interface PrimHook

Provides the interface that a lifecycle action hook must implement. The hooks are invoked for each lifecycle method at the beginning for sfDeployWith (with a the context as additional data) at the beginning for sfDeploy, sfStart (no additional data) at the end for sfTerminateWith (given a TerminationRecord as additional data)

Method Summary
 void sfHookAction(Prim prim, TerminationRecord terminationRecord)
          Execute the hook.

Method Detail


void sfHookAction(Prim prim,
                  TerminationRecord terminationRecord)
                  throws SmartFrogException
Execute the hook.

prim - The primitive being stepped through the lifecycle phase
terminationRecord - It is used only in the TerminationWith hooks, it is a TerminationRecord indicating the cause of the termination. It is null in all other hooks
SmartFrogException - failed to execute the hook

SmartFrog CORE 3.10.000

(C) Copyright 1998-2006 Hewlett-Packard Development Company, LP