KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > openejb > core > ivm > naming > ObjectReference


1 package org.openejb.core.ivm.naming;
2
3 import javax.naming.NamingException JavaDoc;
4
5 /**
6  * This class is used when the object to be reference is available at the time
7  * the reference is created.
8  */

9 public class ObjectReference implements Reference{
10     
11     private Object JavaDoc obj;
12
13     public ObjectReference(Object JavaDoc obj){
14         this.obj = obj;
15     }
16     
17     public Object JavaDoc getObject( ) throws NamingException{
18         return obj;
19     }
20 }
21
Popular Tags