KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > corba > se > impl > naming > pcosnaming > InternalBindingValue


1 /*
2  * @(#)InternalBindingValue.java 1.8 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7 /*
8  * @(#)InternalBindingValue.java 1.17 99/07/16
9  *
10  * Copyright 1993-1997 Sun Microsystems, Inc. 901 San Antonio Road,
11  * Palo Alto, California, 94303, U.S.A. All Rights Reserved.
12  *
13  * This software is the confidential and proprietary information of Sun
14  * Microsystems, Inc. ("Confidential Information"). You shall not
15  * disclose such Confidential Information and shall use it only in
16  * accordance with the terms of the license agreement you entered into
17  * with Sun.
18  *
19  * CopyrightVersion 1.2
20  *
21  */

22
23 package com.sun.corba.se.impl.naming.pcosnaming;
24
25 import org.omg.CORBA.Object JavaDoc;
26 import org.omg.CosNaming.BindingType JavaDoc;
27 import java.io.Serializable JavaDoc;
28
29 /**
30  * Class InternalBindingKey acts as a container for two objects, namely
31  * a org.omg.CosNaming::Binding and an CORBA object reference, which are the two
32  * components associated with the binding.
33  */

34 public class InternalBindingValue
35         implements Serializable JavaDoc
36 {
37     public BindingType JavaDoc theBindingType;
38     // The value stores both Stringified Object Reference and
39
// Non-Stringified Object Reference. This is done to avoid
40
// calling orb.string_to_object( ) everytime. Instead it
41
// will be set once and then the result will be used everytime.
42
public String JavaDoc strObjectRef;
43     transient private org.omg.CORBA.Object JavaDoc theObjectRef;
44   
45     // Default constructor
46
public InternalBindingValue() {
47     }
48
49     // Normal constructor
50
public InternalBindingValue(BindingType JavaDoc b, String JavaDoc o) {
51     // Objectreference or Context
52
theBindingType = b;
53     strObjectRef = o;
54     }
55
56     public org.omg.CORBA.Object JavaDoc getObjectRef( )
57     {
58     return theObjectRef;
59     }
60
61     public void setObjectRef( org.omg.CORBA.Object JavaDoc ObjectRef )
62     {
63     theObjectRef = ObjectRef;
64     }
65     
66 }
67
Popular Tags