KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jfox > ioc > connector > ObjectId


1 /* JFox, the OpenSource J2EE Application Server
2  *
3  * Distributable under GNU LGPL license by gun.org
4  * more details please visit http://www.huihoo.org/jfox
5  */

6
7 package org.jfox.ioc.connector;
8
9 import java.io.Serializable JavaDoc;
10
11 import org.jfox.ioc.util.ObjectUUID;
12
13 /**
14  * @author <a HREF="mailto:young_yy@hotmail.com">Young Yang</a>
15  */

16
17 public class ObjectId implements Serializable JavaDoc {
18
19     protected ObjectUUID uuid;
20
21     public ObjectId(ObjectUUID uuid) {
22         this.uuid = uuid;
23     }
24
25     /**
26      * is this ObjectId's VM in
27      *
28      * @return boolean
29      */

30     public boolean isCurrentVM() {
31         return uuid.getVMID().isCurrentVM();
32     }
33
34     public String JavaDoc toString() {
35         return uuid.toString();
36     }
37
38     public static void main(String JavaDoc[] args) {
39
40     }
41 }
42
Popular Tags