|
SmartFrog 3.10.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.smartfrog.sfcore.prim.PrimHookSet
public class PrimHookSet
This class implements the collection of PrimHooks to be applied to each component in a process when a lifecycle method is invoked.
| Field Summary | |
|---|---|
protected java.util.Vector |
theSet
The set of PrimHooks. |
| Constructor Summary | |
|---|---|
PrimHookSet()
create an empty set. |
|
| Method Summary | |
|---|---|
void |
addHook(PrimHook hook)
Add a hook to the set. |
void |
applyHooks(Prim prim,
TerminationRecord terminationRecord)
Applies user written hooks to the component. |
void |
removeHook(PrimHook hook)
Remove a hook from the set. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Vector theSet
| Constructor Detail |
|---|
public PrimHookSet()
| Method Detail |
|---|
public void addHook(PrimHook hook)
hook - the hook to add
public void removeHook(PrimHook hook)
throws SmartFrogLifecycleException
hook - Hook to remove
SmartFrogLifecycleException - failed to find the hook
public void applyHooks(Prim prim,
TerminationRecord terminationRecord)
throws SmartFrogLifecycleException
prim - The prim on which the hook is being appliedterminationRecord - 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
SmartFrogLifecycleException - thrown by one of the hooks
|
SmartFrog CORE 3.10.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||