KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > server > user > AbstractServerObjectContext


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

19 public abstract class AbstractServerObjectContext implements ServerObjectContext
20 {
21
22    /** The ID for this context. */
23    protected final ServerObjectID id;
24
25    public AbstractServerObjectContext(ServerObjectID id)
26    {
27       this.id = id;
28    }
29
30    public ServerObjectID getID()
31    {
32       return id;
33    }
34
35    /**
36     * Return a description of that object.
37     */

38    public String JavaDoc toString()
39    {
40       return "ServerObjectContext[" + id + "]";
41    }
42 }
43
Popular Tags