KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > server > output > cache > StrongTimedContent


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.cache;
10
11 import org.jboss.portal.server.output.FragmentResult;
12
13 /**
14  * Use strong references.
15  *
16  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
17  * @version $Revision: 1.1 $
18  */

19 public class StrongTimedContent extends TimedContent
20 {
21
22    /** The content. */
23    private final FragmentResult content;
24
25    /**
26     * @exception IllegalArgumentException if the content is null
27     */

28    public StrongTimedContent(FragmentResult content, long expirationTimeMillis) throws IllegalArgumentException JavaDoc
29    {
30       super(expirationTimeMillis);
31       if (content == null)
32       {
33          throw new IllegalArgumentException JavaDoc("Content must not be null");
34       }
35       this.content = content;
36    }
37
38    public FragmentResult getContent()
39    {
40       return content;
41    }
42 }
43
Popular Tags