KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > server > metadata > ComponentMetaData


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.metadata;
10
11 import org.jboss.portal.server.PortalConstants;
12 import org.jboss.portal.server.ServerObjectID;
13
14 /**
15  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
16  * @version $Revision: 1.4 $
17  */

18 public abstract class ComponentMetaData extends ServerObjectMetaData
19 {
20
21    private String JavaDoc expirationCache; // -1 means never expire
22

23    protected ComponentMetaData(String JavaDoc applicationName, String JavaDoc name)
24    {
25       super(ServerObjectID.createComponentID(applicationName, name), name);
26       this.depends.add(ServerObjectID.createApplicationID(applicationName));
27    }
28
29    /**
30     * The class name of the component to instantiate.
31     */

32    public abstract String JavaDoc getClassName();
33
34    public InterceptorListMetaData getInterceptorList()
35    {
36       return (InterceptorListMetaData)getPlugin(PortalConstants.PLUGIN_INVOCATION);
37    }
38
39    public void setInterceptorList(InterceptorListMetaData interceptorList)
40    {
41       addPlugin(PortalConstants.PLUGIN_INVOCATION, interceptorList);
42    }
43
44    public String JavaDoc getExpirationCache()
45    {
46       return expirationCache;
47    }
48
49    public void setExpirationCache(String JavaDoc expirationCache)
50    {
51       this.expirationCache = expirationCache;
52    }
53 }
54
Popular Tags