KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > server > output > Result


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.output;
10
11 import org.jboss.portal.server.WindowContext;
12
13 /**
14  * A general result from an invocation.
15  *
16  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
17  * @version $Revision: 1.2 $
18  */

19 public class Result
20 {
21
22    private final WindowContext producer;
23
24    public Result(WindowContext producer)
25    {
26       if (producer == null)
27       {
28          throw new IllegalArgumentException JavaDoc("Producer must not be null");
29       }
30       this.producer = producer;
31    }
32
33    public WindowContext getProducer()
34    {
35       return producer;
36    }
37 }
38
Popular Tags