Java Code Examples for com.sun.corba.se.impl.naming.pcosnaming.InternalBindingValue

Following code examples demonstrate how to use com.sun.corba.se.impl.naming.pcosnaming.InternalBindingValuefrom java. These examples are extracted from various highly rated open source projects. You can directly use these code snippets or view their entire linked source code. These snippets are extracted to provide contextual information about how to use this class in the real world. These samples also let you understand some good practices on how to use com.sun.corba.se.impl.naming.pcosnaming.InternalBindingValueand various code implementation of this class.

        if (hasMore) {
            InternalBindingKey theBindingKey =
                 ((InternalBindingKey)theEnumeration.nextElement());
            InternalBindingValue theElement =
                (InternalBindingValue)theHashtable.get( theBindingKey );
            NameComponent n = new NameComponent( theBindingKey.id, theBindingKey.kind );
            NameComponent[] nlist = new NameComponent[1];
            nlist[0] = n;
            BindingType theType = theElement.theBindingType;

            b.value =
                new Binding( nlist, theType );
        } else {
            b.value = new Binding(new NameComponent[0],BindingType.nobject);
        } 


Advertisement
Javadoc
Class InternalBindingKey acts as a container for two objects, namely a org.omg.CosNaming::Binding an

d an CORBA object reference, which are the two components associated with the binding.

Read More
Advertisement