KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > server > invocation > Invocation


1 /*****************************************
2  * *
3  * JBoss Portal: The OpenSource Portal *
4  * *
5  * Distributable under LGPL license. *
6  * See terms of license at gnu.org. *
7  * *
8  *****************************************/

9 package org.jboss.portal.server.invocation;
10
11 /**
12  * An invocation that works on an interceptor stack.
13  *
14  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
15  * @version $Revision: 1.1.1.1 $
16  */

17 public interface Invocation
18 {
19
20    /**
21     * Attach an object.
22     */

23    void setAttachment(AttachmentKey key, Object JavaDoc value);
24
25    /**
26     * Get an object attached.
27     */

28    Object JavaDoc getAttachment(AttachmentKey key);
29
30    /**
31     * Remove an attached object.
32     */

33    void removeAttachment(AttachmentKey key);
34
35    /**
36     * Route the invocation to the next interceptor.
37     */

38    Object JavaDoc invokeNext();
39
40    /**
41     * Route the invocation to use a new stack.
42     *
43     * @throws IllegalArgumentException if the interceptor stack is null
44     */

45    Object JavaDoc invokeNext(Interceptor[] newInterceptors) throws IllegalArgumentException JavaDoc;
46 }
47
Popular Tags