KickJava   Java API By Example, From Geeks To Geeks.

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


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.ServerObjectID;
12
13 /**
14  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
15  * @version $Revision: 1.2 $
16  */

17 public class InstanceMetaData extends ServerObjectMetaData
18 {
19
20    private final ServerObjectID componentID;
21
22    public InstanceMetaData(String JavaDoc name, ServerObjectID componentID)
23    {
24       super(ServerObjectID.createInstanceID(componentID, name), name);
25       this.componentID = componentID;
26       this.depends.add(componentID);
27    }
28
29    public ServerObjectID getComponentID()
30    {
31       return componentID;
32    }
33 }
34
Popular Tags