KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > core > theme > tag > basic > Functions


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.core.theme.tag.basic;
10
11 import java.util.Set JavaDoc;
12 import java.util.HashSet JavaDoc;
13
14 /**
15  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
16  * @version $Revision: 1.1 $
17  */

18 public class Functions
19 {
20
21    static final ThreadLocal JavaDoc modes = new ThreadLocal JavaDoc()
22    {
23       public Object JavaDoc initialValue()
24       {
25          return new HashSet JavaDoc();
26       }
27    };
28
29    public static Set JavaDoc getSupportedModes()
30    {
31       return (Set JavaDoc)modes.get();
32    }
33 }
34
Popular Tags