Java Code Examples for

Following code examples demonstrate how to use 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 various code implementation of this class.

        if (hasMore) {
            InternalBindingKey theBindingKey =
            InternalBindingValue theElement =
                (InternalBindingValue)theHashtable.get( theBindingKey );
            NameComponent n = new NameComponent(, 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);

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