1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 package net.sourceforge.servletspy;
24
25 /***
26 * The <code>IContextHandler</code> describes an object used to do a subject
27 * to node graph serialization.
28 *
29 * @author arno schumacher
30 */
31 public interface IContextHandler extends ILifecycle {
32 /***
33 * The <code>handle</code> method of the <code>IContextHandler</code> is
34 * called by the engine each time a subject object should be serialized.
35 * The <code>IContextHandler</code> may do the serialization itself using
36 * the operations provided by the <code>IContext</code> or pass the
37 * serialization task to the next <code>IContextHandler</code> by calling
38 * the <code>proceed</code> method on the <code>IContext</code> object.
39 *
40 * @param context
41 * The current serialization context
42 * @throws Exception
43 * To signal serialization problems
44 */
45 void handle(IContext context) throws Exception;
46 }