SmartFrog 3.10.000

org.smartfrog.sfcore.prim
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

sfHookAction

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

Parameters:
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
Throws:
SmartFrogException - failed to execute the hook

SmartFrog CORE 3.10.000

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