org.omg.CosNaming
Class _BindingIteratorStub

java.lang.Object
  extended by org.omg.CORBA.portable.ObjectImpl
      extended by org.omg.CosNaming._BindingIteratorStub
All Implemented Interfaces:
Serializable, Object, IDLEntity, BindingIterator, BindingIteratorOperations

public class _BindingIteratorStub
extends ObjectImpl
implements BindingIterator

The binding interator stub (proxy), used on the client side. The BindingIterator methods contains the code for remote invocaton.

See Also:
Serialized Form

Constructor Summary
_BindingIteratorStub()
          Create the stub.
 
Method Summary
 String[] _ids()
          Get an array of repository ids for this object.
 boolean _non_existent()
          Returns true if the object has been destroyed.
 void destroy()
          Destroys the object on the server side.
protected  void finalize()
          Destroys the iterator instance on the server side, calling destroy().
 boolean next_n(int amount, BindingListHolder a_list)
          Return the desired amount of bindings.
 boolean next_one(BindingHolder a_binding)
          Return the next binding.
 
Methods inherited from class org.omg.CORBA.portable.ObjectImpl
_create_request, _create_request, _duplicate, _get_delegate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_delegate, _set_policy_override, equals, toString
 
Methods inherited from class java.lang.Object
clone, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.omg.CORBA.Object
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _release, _request, _set_policy_override
 

Constructor Detail

_BindingIteratorStub

public _BindingIteratorStub()
Create the stub.

Method Detail

_ids

public String[] _ids()
Get an array of repository ids for this object.

Specified by:
_ids in class ObjectImpl

_non_existent

public boolean _non_existent()
Returns true if the object has been destroyed.

Specified by:
_non_existent in interface Object
Overrides:
_non_existent in class ObjectImpl
Returns:
true if the object has been destroyed, false otherwise.

destroy

public void destroy()
Destroys the object on the server side. The destruction message is sent only once, even if the method is called repeatedly.

Specified by:
destroy in interface BindingIterator
Specified by:
destroy in interface BindingIteratorOperations

next_n

public boolean next_n(int amount,
                      BindingListHolder a_list)
Return the desired amount of bindings.

Specified by:
next_n in interface BindingIterator
Specified by:
next_n in interface BindingIteratorOperations
Parameters:
amount - the maximal number of bindings to return.
a_list - a holder to store the returned bindings.
Returns:
false if there are no more bindings available, true otherwise.

next_one

public boolean next_one(BindingHolder a_binding)
Return the next binding.

Specified by:
next_one in interface BindingIterator
Specified by:
next_one in interface BindingIteratorOperations
Parameters:
a_binding - a holder, where the next binding will be stored.
Returns:
false if there are no more bindings available, true otherwise.

finalize

protected void finalize()
                 throws Throwable
Destroys the iterator instance on the server side, calling destroy().

Overrides:
finalize in class Object
Throws:
Throwable
See Also:
System.gc(), System.runFinalizersOnExit(boolean), java.lang.ref