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)
sfHookAction
void sfHookAction(Prim prim,
TerminationRecord terminationRecord)
throws SmartFrogException
- Execute the hook.
- Parameters:
prim - The primitive being stepped through the lifecycle phaseterminationRecord - 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
(C) Copyright 1998-2006 Hewlett-Packard Development Company, LP