KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > common > command > filter > CommandFilter


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

11 package org.jboss.portal.common.command.filter;
12
13 import org.jboss.portal.common.command.result.Result;
14 import org.jboss.portal.common.command.Command;
15 import org.jboss.portal.common.command.CommandException;
16
17 /**
18  * A command filter which adds value around the command execution.
19  *
20  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
21  * @version $Revision: 1.1 $
22  */

23 public interface CommandFilter
24 {
25    Result filter(Command command) throws CommandException;
26    void setNext(CommandFilter filter);
27    CommandFilter getNext();
28 }
29
Popular Tags