Java Code Examples for org.omg.CosNaming.BindingIteratorHolder

The following are top voted examples for showing how to use org.omg.CosNaming.BindingIteratorHolder. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: OpenJSharp   File: NamingContextImpl.java   Source Code and License 6 votes vote down vote up
/**
 * List the contents of this NamingContest. A sequence of bindings
 * is returned (a BindingList) containing up to the number of requested
 * bindings, and a BindingIterator object reference is returned for
 * iterating over the remaining bindings.
 * @param how_many The number of requested bindings in the BindingList.
 * @param bl The BindingList as an out parameter.
 * @param bi The BindingIterator as an out parameter.
 * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA
 * system exceptions.
 * @see BindingListHolder
 * @see BindingIteratorImpl
 */
public  void list(int how_many, BindingListHolder bl,
    BindingIteratorHolder bi)
{
    // List actually generates the list
    NamingContextDataStore impl = (NamingContextDataStore)this;
    synchronized (impl) {
        impl.List(how_many,bl,bi);
    }
    if( readLogger.isLoggable( Level.FINE ) && (bl.value != null )) {
        // isLoggable call to make sure that we save some precious
        // processor cycles, if there is no need to log.
        readLogger.fine ( LogKeywords.NAMING_LIST_SUCCESS +
            "list(" + how_many + ") -> bindings[" + bl.value.length +
            "] + iterator: " + bi.value);
    }
}
 
Example 2
Project: openjdk-jdk10   File: NamingContextImpl.java   Source Code and License 6 votes vote down vote up
/**
 * List the contents of this NamingContest. A sequence of bindings
 * is returned (a BindingList) containing up to the number of requested
 * bindings, and a BindingIterator object reference is returned for
 * iterating over the remaining bindings.
 * @param how_many The number of requested bindings in the BindingList.
 * @param bl The BindingList as an out parameter.
 * @param bi The BindingIterator as an out parameter.
 * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA
 * system exceptions.
 * @see BindingListHolder
 * @see BindingIteratorImpl
 */
public  void list(int how_many, BindingListHolder bl,
    BindingIteratorHolder bi)
{
    // List actually generates the list
    NamingContextDataStore impl = (NamingContextDataStore)this;
    synchronized (impl) {
        impl.List(how_many,bl,bi);
    }
    if( readLogger.isLoggable( Level.FINE ) && (bl.value != null )) {
        // isLoggable call to make sure that we save some precious
        // processor cycles, if there is no need to log.
        readLogger.fine ( LogKeywords.NAMING_LIST_SUCCESS +
            "list(" + how_many + ") -> bindings[" + bl.value.length +
            "] + iterator: " + bi.value);
    }
}
 
Example 3
Project: openjdk9   File: NamingContextImpl.java   Source Code and License 6 votes vote down vote up
/**
 * List the contents of this NamingContest. A sequence of bindings
 * is returned (a BindingList) containing up to the number of requested
 * bindings, and a BindingIterator object reference is returned for
 * iterating over the remaining bindings.
 * @param how_many The number of requested bindings in the BindingList.
 * @param bl The BindingList as an out parameter.
 * @param bi The BindingIterator as an out parameter.
 * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA
 * system exceptions.
 * @see BindingListHolder
 * @see BindingIteratorImpl
 */
public  void list(int how_many, BindingListHolder bl,
    BindingIteratorHolder bi)
{
    // List actually generates the list
    NamingContextDataStore impl = (NamingContextDataStore)this;
    synchronized (impl) {
        impl.List(how_many,bl,bi);
    }
    if( readLogger.isLoggable( Level.FINE ) && (bl.value != null )) {
        // isLoggable call to make sure that we save some precious
        // processor cycles, if there is no need to log.
        readLogger.fine ( LogKeywords.NAMING_LIST_SUCCESS +
            "list(" + how_many + ") -> bindings[" + bl.value.length +
            "] + iterator: " + bi.value);
    }
}
 
Example 4
Project: lookaside_java-1.8.0-openjdk   File: NamingContextImpl.java   Source Code and License 6 votes vote down vote up
/**
 * List the contents of this NamingContest. A sequence of bindings
 * is returned (a BindingList) containing up to the number of requested
 * bindings, and a BindingIterator object reference is returned for
 * iterating over the remaining bindings.
 * @param how_many The number of requested bindings in the BindingList.
 * @param bl The BindingList as an out parameter.
 * @param bi The BindingIterator as an out parameter.
 * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA
 * system exceptions.
 * @see BindingListHolder
 * @see BindingIteratorImpl
 */
public  void list(int how_many, BindingListHolder bl,
    BindingIteratorHolder bi)
{
    // List actually generates the list
    NamingContextDataStore impl = (NamingContextDataStore)this;
    synchronized (impl) {
        impl.List(how_many,bl,bi);
    }
    if( readLogger.isLoggable( Level.FINE ) && (bl.value != null )) {
        // isLoggable call to make sure that we save some precious
        // processor cycles, if there is no need to log.
        readLogger.fine ( LogKeywords.NAMING_LIST_SUCCESS +
            "list(" + how_many + ") -> bindings[" + bl.value.length +
            "] + iterator: " + bi.value);
    }
}
 
Example 5
Project: jdk8u_corba   File: NamingContextImpl.java   Source Code and License 6 votes vote down vote up
/**
 * List the contents of this NamingContest. A sequence of bindings
 * is returned (a BindingList) containing up to the number of requested
 * bindings, and a BindingIterator object reference is returned for
 * iterating over the remaining bindings.
 * @param how_many The number of requested bindings in the BindingList.
 * @param bl The BindingList as an out parameter.
 * @param bi The BindingIterator as an out parameter.
 * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA
 * system exceptions.
 * @see BindingListHolder
 * @see BindingIteratorImpl
 */
public  void list(int how_many, BindingListHolder bl,
    BindingIteratorHolder bi)
{
    // List actually generates the list
    NamingContextDataStore impl = (NamingContextDataStore)this;
    synchronized (impl) {
        impl.List(how_many,bl,bi);
    }
    if( readLogger.isLoggable( Level.FINE ) && (bl.value != null )) {
        // isLoggable call to make sure that we save some precious
        // processor cycles, if there is no need to log.
        readLogger.fine ( LogKeywords.NAMING_LIST_SUCCESS +
            "list(" + how_many + ") -> bindings[" + bl.value.length +
            "] + iterator: " + bi.value);
    }
}
 
Example 6
Project: javify   File: ContextContinuation.java   Source Code and License 6 votes vote down vote up
/**
 * Creates and returns the enumeration over the name - object bindings that
 * are present the given subcontext. The enumeration elements have the type of
 * {@link Binding}, providing also information about the class of the bound
 * object. The behaviour in the case if the bindings are added or removed
 * later is not defined. The contents of the subcontexts are not included.
 *
 * @param name
 *          the name of the subcontext
 * @return the enumeration over the names, known for the given subcontext.
 * @throws NamingException
 */
public NamingEnumeration listBindings(Name name) throws NamingException
{
  BindingIteratorHolder bi = new BindingIteratorHolder();
  BindingListHolder bl = new BindingListHolder();

  NamingContext subcontext;

  if (name.size() == 0)
    subcontext = service;
  else
    {
      try
        {
          subcontext = (NamingContextHelper.narrow(service.resolve(toGiop(name))));
        }
      catch (Exception e)
        {
          throw new NamingException(e.toString());
        }
    }

  subcontext.list(howMany, bl, bi);

  return new ListBindingsEnumeration(bl, bi, howMany, subcontext);
}
 
Example 7
Project: jvm-stm   File: ContextContinuation.java   Source Code and License 6 votes vote down vote up
/**
 * Creates and returns the enumeration over the name - object bindings that
 * are present the given subcontext. The enumeration elements have the type of
 * {@link Binding}, providing also information about the class of the bound
 * object. The behaviour in the case if the bindings are added or removed
 * later is not defined. The contents of the subcontexts are not included.
 * 
 * @param name
 *          the name of the subcontext
 * @return the enumeration over the names, known for the given subcontext.
 * @throws NamingException
 */
public NamingEnumeration listBindings(Name name) throws NamingException
{
  BindingIteratorHolder bi = new BindingIteratorHolder();
  BindingListHolder bl = new BindingListHolder();

  NamingContext subcontext;

  if (name.size() == 0)
    subcontext = service;
  else
    {
      try
        {
          subcontext = (NamingContextHelper.narrow(service.resolve(toGiop(name))));
        }
      catch (Exception e)
        {
          throw new NamingException(e.toString());
        }
    }

  subcontext.list(howMany, bl, bi);

  return new ListBindingsEnumeration(bl, bi, howMany, subcontext);
}
 
Example 8
Project: infobip-open-jdk-8   File: NamingContextImpl.java   Source Code and License 6 votes vote down vote up
/**
 * List the contents of this NamingContest. A sequence of bindings
 * is returned (a BindingList) containing up to the number of requested
 * bindings, and a BindingIterator object reference is returned for
 * iterating over the remaining bindings.
 * @param how_many The number of requested bindings in the BindingList.
 * @param bl The BindingList as an out parameter.
 * @param bi The BindingIterator as an out parameter.
 * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA
 * system exceptions.
 * @see BindingListHolder
 * @see BindingIteratorImpl
 */
public  void list(int how_many, BindingListHolder bl,
    BindingIteratorHolder bi)
{
    // List actually generates the list
    NamingContextDataStore impl = (NamingContextDataStore)this;
    synchronized (impl) {
        impl.List(how_many,bl,bi);
    }
    if( readLogger.isLoggable( Level.FINE ) && (bl.value != null )) {
        // isLoggable call to make sure that we save some precious
        // processor cycles, if there is no need to log.
        readLogger.fine ( LogKeywords.NAMING_LIST_SUCCESS +
            "list(" + how_many + ") -> bindings[" + bl.value.length +
            "] + iterator: " + bi.value);
    }
}
 
Example 9
Project: openjdk-source-code-learn   File: NamingContextImpl.java   Source Code and License 6 votes vote down vote up
/**
 * List the contents of this NamingContest. A sequence of bindings
 * is returned (a BindingList) containing up to the number of requested
 * bindings, and a BindingIterator object reference is returned for
 * iterating over the remaining bindings.
 * @param how_many The number of requested bindings in the BindingList.
 * @param bl The BindingList as an out parameter.
 * @param bi The BindingIterator as an out parameter.
 * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA
 * system exceptions.
 * @see BindingListHolder
 * @see BindingIteratorImpl
 */
public  void list(int how_many, BindingListHolder bl,
    BindingIteratorHolder bi)
{
    // List actually generates the list
    NamingContextDataStore impl = (NamingContextDataStore)this;
    synchronized (impl) {
        impl.List(how_many,bl,bi);
    }
    if( readLogger.isLoggable( Level.FINE ) && (bl.value != null )) {
        // isLoggable call to make sure that we save some precious
        // processor cycles, if there is no need to log.
        readLogger.fine ( LogKeywords.NAMING_LIST_SUCCESS +
            "list(" + how_many + ") -> bindings[" + bl.value.length +
            "] + iterator: " + bi.value);
    }
}
 
Example 10
Project: OLD-OpenJDK8   File: NamingContextImpl.java   Source Code and License 6 votes vote down vote up
/**
 * List the contents of this NamingContest. A sequence of bindings
 * is returned (a BindingList) containing up to the number of requested
 * bindings, and a BindingIterator object reference is returned for
 * iterating over the remaining bindings.
 * @param how_many The number of requested bindings in the BindingList.
 * @param bl The BindingList as an out parameter.
 * @param bi The BindingIterator as an out parameter.
 * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA
 * system exceptions.
 * @see BindingListHolder
 * @see BindingIteratorImpl
 */
public  void list(int how_many, BindingListHolder bl,
    BindingIteratorHolder bi)
{
    // List actually generates the list
    NamingContextDataStore impl = (NamingContextDataStore)this;
    synchronized (impl) {
        impl.List(how_many,bl,bi);
    }
    if( readLogger.isLoggable( Level.FINE ) && (bl.value != null )) {
        // isLoggable call to make sure that we save some precious
        // processor cycles, if there is no need to log.
        readLogger.fine ( LogKeywords.NAMING_LIST_SUCCESS +
            "list(" + how_many + ") -> bindings[" + bl.value.length +
            "] + iterator: " + bi.value);
    }
}
 
Example 11
Project: JamVM-PH   File: ContextContinuation.java   Source Code and License 6 votes vote down vote up
/**
 * Creates and returns the enumeration over the name - object bindings that
 * are present the given subcontext. The enumeration elements have the type of
 * {@link Binding}, providing also information about the class of the bound
 * object. The behaviour in the case if the bindings are added or removed
 * later is not defined. The contents of the subcontexts are not included.
 * 
 * @param name
 *          the name of the subcontext
 * @return the enumeration over the names, known for the given subcontext.
 * @throws NamingException
 */
public NamingEnumeration listBindings(Name name) throws NamingException
{
  BindingIteratorHolder bi = new BindingIteratorHolder();
  BindingListHolder bl = new BindingListHolder();

  NamingContext subcontext;

  if (name.size() == 0)
    subcontext = service;
  else
    {
      try
        {
          subcontext = (NamingContextHelper.narrow(service.resolve(toGiop(name))));
        }
      catch (Exception e)
        {
          throw new NamingException(e.toString());
        }
    }

  subcontext.list(howMany, bl, bi);

  return new ListBindingsEnumeration(bl, bi, howMany, subcontext);
}
 
Example 12
Project: openjdk-orb   File: NamingContextImpl.java   Source Code and License 6 votes vote down vote up
/**
 * List the contents of this NamingContest. A sequence of bindings
 * is returned (a BindingList) containing up to the number of requested
 * bindings, and a BindingIterator object reference is returned for
 * iterating over the remaining bindings.
 * @param how_many The number of requested bindings in the BindingList.
 * @param bl The BindingList as an out parameter.
 * @param bi The BindingIterator as an out parameter.
 * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA
 * system exceptions.
 * @see BindingListHolder
 * @see BindingIteratorImpl
 */
public  void list(int how_many, BindingListHolder bl,
    BindingIteratorHolder bi)
{
    // List actually generates the list
    NamingContextDataStore impl = (NamingContextDataStore)this;
    synchronized (impl) {
        impl.List(how_many,bl,bi);
    }
    if( readLogger.isLoggable( Level.FINE ) && (bl.value != null )) {
        // isLoggable call to make sure that we save some precious
        // processor cycles, if there is no need to log.
        readLogger.fine ( LogKeywords.NAMING_LIST_SUCCESS +
            "list(" + how_many + ") -> bindings[" + bl.value.length +
            "] + iterator: " + bi.value);
    }
}
 
Example 13
Project: classpath   File: ContextContinuation.java   Source Code and License 6 votes vote down vote up
/**
 * Creates and returns the enumeration over the name - object bindings that
 * are present the given subcontext. The enumeration elements have the type of
 * {@link Binding}, providing also information about the class of the bound
 * object. The behaviour in the case if the bindings are added or removed
 * later is not defined. The contents of the subcontexts are not included.
 *
 * @param name
 *          the name of the subcontext
 * @return the enumeration over the names, known for the given subcontext.
 * @throws NamingException
 */
public NamingEnumeration listBindings(Name name) throws NamingException
{
  BindingIteratorHolder bi = new BindingIteratorHolder();
  BindingListHolder bl = new BindingListHolder();

  NamingContext subcontext;

  if (name.size() == 0)
    subcontext = service;
  else
    {
      try
        {
          subcontext = (NamingContextHelper.narrow(service.resolve(toGiop(name))));
        }
      catch (Exception e)
        {
          throw new NamingException(e.toString());
        }
    }

  subcontext.list(howMany, bl, bi);

  return new ListBindingsEnumeration(bl, bi, howMany, subcontext);
}
 
Example 14
Project: openjdk-icedtea7   File: NamingContextImpl.java   Source Code and License 6 votes vote down vote up
/**
 * List the contents of this NamingContest. A sequence of bindings
 * is returned (a BindingList) containing up to the number of requested
 * bindings, and a BindingIterator object reference is returned for
 * iterating over the remaining bindings.
 * @param how_many The number of requested bindings in the BindingList.
 * @param bl The BindingList as an out parameter.
 * @param bi The BindingIterator as an out parameter.
 * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA
 * system exceptions.
 * @see BindingListHolder
 * @see BindingIteratorImpl
 */
public  void list(int how_many, BindingListHolder bl,
    BindingIteratorHolder bi)
{
    // List actually generates the list
    NamingContextDataStore impl = (NamingContextDataStore)this;
    synchronized (impl) {
        impl.List(how_many,bl,bi);
    }
    if( readLogger.isLoggable( Level.FINE ) && (bl.value != null )) {
        // isLoggable call to make sure that we save some precious
        // processor cycles, if there is no need to log.
        readLogger.fine ( LogKeywords.NAMING_LIST_SUCCESS +
            "list(" + how_many + ") -> bindings[" + bl.value.length +
            "] + iterator: " + bi.value);
    }
}
 
Example 15
Project: javify   File: ContextContinuation.java   Source Code and License 5 votes vote down vote up
/**
 * Creates and returns the enumeration over the name bindings that are present
 * the given subcontext. The enumeration elements have the type of
 * {@link NameClassPair}, providing also information about the class of the
 * bound object. The behaviour in the case if the bindings are added or
 * removed later is not defined. The contents of the subcontexts are not
 * included.
 *
 * @param name
 *          the name of the subcontext
 * @return the enumeration over the names, known for the given subcontext.
 * @throws NamingException
 */
public NamingEnumeration list(Name name) throws NamingException
{
  BindingIteratorHolder bi = new BindingIteratorHolder();
  BindingListHolder bl = new BindingListHolder();

  NamingContext subcontext;

  if (name.size() == 0)
    subcontext = service;
  else
    {
      try
        {
          subcontext = (NamingContextHelper.narrow(service.resolve(toGiop(name))));
        }
      catch (Exception e)
        {
          throw new NamingException(e.toString());
        }

    }

  subcontext.list(howMany, bl, bi);

  return new ListEnumeration(bl, bi, howMany);
}
 
Example 16
Project: javify   File: ContextContinuation.java   Source Code and License 5 votes vote down vote up
/**
 * Creates and returns the enumeration over the name bindings that are present
 * the given subcontext. The enumeration elements have the type of
 * {@link NameClassPair}, providing also information about the class of the
 * bound object. The behaviour in the case if the bindings are added or
 * removed later is not defined. The contents of the subcontexts are not
 * included.
 *
 * @param name
 *          the name of the subcontext
 * @return the enumeration over the names, known for the given subcontext.
 * @throws NamingException
 */
public NamingEnumeration list(String name) throws NamingException
{
  BindingIteratorHolder bi = new BindingIteratorHolder();
  BindingListHolder bl = new BindingListHolder();

  NamingContext subcontext;

  if (name.length() == 0)
    subcontext = service;
  else
    {
      try
        {
          subcontext = (NamingContextHelper.narrow(service.resolve_str(name)));
        }
      catch (Exception e)
        {
          throw new NamingException(e.toString());
        }

    }

  subcontext.list(howMany, bl, bi);

  return new ListEnumeration(bl, bi, howMany);
}
 
Example 17
Project: javify   File: ContextContinuation.java   Source Code and License 5 votes vote down vote up
/**
 * Creates and returns the enumeration over the name - object bindings that
 * are present the given subcontext. The enumeration elements have the type of
 * {@link Binding}, providing also information about the class of the bound
 * object. The behaviour in the case if the bindings are added or removed
 * later is not defined. The contents of the subcontexts are not included.
 *
 * @param name
 *          the name of the subcontext
 * @return the enumeration over the names, known for the given subcontext.
 * @throws NamingException
 */
public NamingEnumeration listBindings(String name) throws NamingException
{
  BindingIteratorHolder bi = new BindingIteratorHolder();
  BindingListHolder bl = new BindingListHolder();

  NamingContext subcontext;

  if (name.length() == 0)
    subcontext = service;
  else
    {
      try
        {
          subcontext = (NamingContextHelper.narrow(service.resolve_str(name)));
        }
      catch (Exception e)
        {
          throw new NamingException(e.toString());
        }

    }

  subcontext.list(howMany, bl, bi);

  return new ListBindingsEnumeration(bl, bi, howMany, subcontext);
}
 
Example 18
Project: javify   File: GiopNamingServiceURLContext.java   Source Code and License 5 votes vote down vote up
/**
 * Creates and returns the enumeration over the name bindings that are present
 * the given subcontext. The enumeration elements have the type of
 * {@link NameClassPair}, providing also information about the class of the
 * bound object. The behaviour in the case if the bindings are added or
 * removed later is not defined. The contents of the subcontexts are not
 * included.
 *
 * @param name
 *          the name of the subcontext
 * @return the enumeration over the names, known for the given subcontext.
 * @throws NamingException
 */
public NamingEnumeration list(String name) throws NamingException
{
  BindingIteratorHolder bi = new BindingIteratorHolder();
  BindingListHolder bl = new BindingListHolder();

  NamingContext subcontext;

  String [] n = split(name);
  NamingContextExt service = getService(n[0]);

  if (n[1].length() == 0)
    subcontext = service;
  else
    {
      try
        {
          subcontext = (NamingContextHelper.narrow(service.resolve_str(n[1])));
        }
      catch (Exception e)
        {
          throw new NamingException(e.toString());
        }

    }

  subcontext.list(howMany, bl, bi);

  return new ListEnumeration(bl, bi, howMany);
}
 
Example 19
Project: javify   File: GiopNamingServiceURLContext.java   Source Code and License 5 votes vote down vote up
/**
 * Creates and returns the enumeration over the name - object bindings that
 * are present the given subcontext. The enumeration elements have the type of
 * {@link Binding}, providing also information about the class of the bound
 * object. The behaviour in the case if the bindings are added or removed
 * later is not defined. The contents of the subcontexts are not included.
 *
 * @param name
 *          the name of the subcontext
 * @return the enumeration over the names, known for the given subcontext.
 * @throws NamingException
 */
public NamingEnumeration listBindings(String name) throws NamingException
{
  BindingIteratorHolder bi = new BindingIteratorHolder();
  BindingListHolder bl = new BindingListHolder();

  NamingContext subcontext;

  String [] n = split(name);
  NamingContextExt service = getService(n[0]);

  if (n[1].length() == 0)
    subcontext = service;
  else
    {
      try
        {
          subcontext = (NamingContextHelper.narrow(service.resolve_str(n[1])));
        }
      catch (Exception e)
        {
          throw new NamingException(e.toString());
        }

    }

  subcontext.list(howMany, bl, bi);

  return new ListBindingsEnumeration(bl, bi, howMany, subcontext);
}
 
Example 20
Project: javify   File: Ext.java   Source Code and License 5 votes vote down vote up
/** {@inheritDoc} */
public void list(int amount, BindingListHolder a_list,
                 BindingIteratorHolder an_iter
                )
{
  classic.list(amount, a_list, an_iter);
}
 
Example 21
Project: javify   File: TransientContext.java   Source Code and License 5 votes vote down vote up
/**
 * Iterate over all bindings, defined in this namind context.
 *
 * @param amount the maximal number of context to return in the
 * holder a_list. The remaining bindings are accessible via iterator
 * an_iter. If the parameter amount is zero, all bindings are accessed only
 * via this iterator.
 *
 * This implementation list contexts first, then objects.
 *
 * @param a_list the holder, where the returned bindigs are stored.
 * @param an_iter the iterator that can be used to access the remaining
 * bindings.
 */
public void list(int amount, BindingListHolder a_list,
                 BindingIteratorHolder an_iter
                )
{
  int nb = named_contexts.size() + named_objects.size();
  int nl = nb;
  if (nl > amount)
    nl = amount;

  a_list.value = new Binding[ nl ];

  Iterator contexts = named_contexts.entries().iterator();
  Iterator objects = named_objects.entries().iterator();

  // Create a binding list.
  for (int i = 0; i < nl; i++)
    {
      if (contexts.hasNext())
        a_list.value [ i ] = mkBinding(contexts.next(), BindingType.ncontext);
      else if (objects.hasNext())
        a_list.value [ i ] = mkBinding(objects.next(), BindingType.nobject);
      else
        throw new InternalError();
    }

  // Create an iterator.
  Binding[] remainder = new Binding[ nb - nl ];
  int p = 0;

  while (contexts.hasNext())
    remainder [ p++ ] = mkBinding(contexts.next(), BindingType.ncontext);

  while (objects.hasNext())
    remainder [ p++ ] = mkBinding(objects.next(), BindingType.nobject);

  Binding_iterator_impl bit = new Binding_iterator_impl(remainder);
  _orb().connect(bit);
  an_iter.value = bit;
}
 
Example 22
Project: jvm-stm   File: ContextContinuation.java   Source Code and License 5 votes vote down vote up
/**
 * Creates and returns the enumeration over the name bindings that are present
 * the given subcontext. The enumeration elements have the type of
 * {@link NameClassPair}, providing also information about the class of the
 * bound object. The behaviour in the case if the bindings are added or
 * removed later is not defined. The contents of the subcontexts are not
 * included.
 * 
 * @param name
 *          the name of the subcontext
 * @return the enumeration over the names, known for the given subcontext.
 * @throws NamingException
 */
public NamingEnumeration list(Name name) throws NamingException
{
  BindingIteratorHolder bi = new BindingIteratorHolder();
  BindingListHolder bl = new BindingListHolder();

  NamingContext subcontext;

  if (name.size() == 0)
    subcontext = service;
  else
    {
      try
        {
          subcontext = (NamingContextHelper.narrow(service.resolve(toGiop(name))));
        }
      catch (Exception e)
        {
          throw new NamingException(e.toString());
        }

    }

  subcontext.list(howMany, bl, bi);

  return new ListEnumeration(bl, bi, howMany);
}
 
Example 23
Project: jvm-stm   File: ContextContinuation.java   Source Code and License 5 votes vote down vote up
/**
 * Creates and returns the enumeration over the name bindings that are present
 * the given subcontext. The enumeration elements have the type of
 * {@link NameClassPair}, providing also information about the class of the
 * bound object. The behaviour in the case if the bindings are added or
 * removed later is not defined. The contents of the subcontexts are not
 * included.
 * 
 * @param name
 *          the name of the subcontext
 * @return the enumeration over the names, known for the given subcontext.
 * @throws NamingException
 */
public NamingEnumeration list(String name) throws NamingException
{
  BindingIteratorHolder bi = new BindingIteratorHolder();
  BindingListHolder bl = new BindingListHolder();

  NamingContext subcontext;

  if (name.length() == 0)
    subcontext = service;
  else
    {
      try
        {
          subcontext = (NamingContextHelper.narrow(service.resolve_str(name)));
        }
      catch (Exception e)
        {
          throw new NamingException(e.toString());
        }

    }

  subcontext.list(howMany, bl, bi);

  return new ListEnumeration(bl, bi, howMany);
}
 
Example 24
Project: jvm-stm   File: ContextContinuation.java   Source Code and License 5 votes vote down vote up
/**
 * Creates and returns the enumeration over the name - object bindings that
 * are present the given subcontext. The enumeration elements have the type of
 * {@link Binding}, providing also information about the class of the bound
 * object. The behaviour in the case if the bindings are added or removed
 * later is not defined. The contents of the subcontexts are not included.
 * 
 * @param name
 *          the name of the subcontext
 * @return the enumeration over the names, known for the given subcontext.
 * @throws NamingException
 */
public NamingEnumeration listBindings(String name) throws NamingException
{
  BindingIteratorHolder bi = new BindingIteratorHolder();
  BindingListHolder bl = new BindingListHolder();

  NamingContext subcontext;

  if (name.length() == 0)
    subcontext = service;
  else
    {
      try
        {
          subcontext = (NamingContextHelper.narrow(service.resolve_str(name)));
        }
      catch (Exception e)
        {
          throw new NamingException(e.toString());
        }

    }

  subcontext.list(howMany, bl, bi);

  return new ListBindingsEnumeration(bl, bi, howMany, subcontext);
}
 
Example 25
Project: jvm-stm   File: GiopNamingServiceURLContext.java   Source Code and License 5 votes vote down vote up
/**
 * Creates and returns the enumeration over the name bindings that are present
 * the given subcontext. The enumeration elements have the type of
 * {@link NameClassPair}, providing also information about the class of the
 * bound object. The behaviour in the case if the bindings are added or
 * removed later is not defined. The contents of the subcontexts are not
 * included.
 * 
 * @param name
 *          the name of the subcontext
 * @return the enumeration over the names, known for the given subcontext.
 * @throws NamingException
 */
public NamingEnumeration list(String name) throws NamingException
{
  BindingIteratorHolder bi = new BindingIteratorHolder();
  BindingListHolder bl = new BindingListHolder();

  NamingContext subcontext;
  
  String [] n = split(name);
  NamingContextExt service = getService(n[0]);

  if (n[1].length() == 0)
    subcontext = service;
  else
    {
      try
        {
          subcontext = (NamingContextHelper.narrow(service.resolve_str(n[1])));
        }
      catch (Exception e)
        {
          throw new NamingException(e.toString());
        }

    }

  subcontext.list(howMany, bl, bi);

  return new ListEnumeration(bl, bi, howMany);
}
 
Example 26
Project: jvm-stm   File: GiopNamingServiceURLContext.java   Source Code and License 5 votes vote down vote up
/**
 * Creates and returns the enumeration over the name - object bindings that
 * are present the given subcontext. The enumeration elements have the type of
 * {@link Binding}, providing also information about the class of the bound
 * object. The behaviour in the case if the bindings are added or removed
 * later is not defined. The contents of the subcontexts are not included.
 * 
 * @param name
 *          the name of the subcontext
 * @return the enumeration over the names, known for the given subcontext.
 * @throws NamingException
 */
public NamingEnumeration listBindings(String name) throws NamingException
{
  BindingIteratorHolder bi = new BindingIteratorHolder();
  BindingListHolder bl = new BindingListHolder();

  NamingContext subcontext;
  
  String [] n = split(name);
  NamingContextExt service = getService(n[0]);

  if (n[1].length() == 0)
    subcontext = service;
  else
    {
      try
        {
          subcontext = (NamingContextHelper.narrow(service.resolve_str(n[1])));
        }
      catch (Exception e)
        {
          throw new NamingException(e.toString());
        }

    }

  subcontext.list(howMany, bl, bi);

  return new ListBindingsEnumeration(bl, bi, howMany, subcontext);
}
 
Example 27
Project: jvm-stm   File: Ext.java   Source Code and License 5 votes vote down vote up
/** {@inheritDoc} */
public void list(int amount, BindingListHolder a_list,
                 BindingIteratorHolder an_iter
                )
{
  classic.list(amount, a_list, an_iter);
}
 
Example 28
Project: jvm-stm   File: TransientContext.java   Source Code and License 5 votes vote down vote up
/**
 * Iterate over all bindings, defined in this namind context.
 *
 * @param amount the maximal number of context to return in the
 * holder a_list. The remaining bindings are accessible via iterator
 * an_iter. If the parameter amount is zero, all bindings are accessed only
 * via this iterator.
 *
 * This implementation list contexts first, then objects.
 *
 * @param a_list the holder, where the returned bindigs are stored.
 * @param an_iter the iterator that can be used to access the remaining
 * bindings.
 */
public void list(int amount, BindingListHolder a_list,
                 BindingIteratorHolder an_iter
                )
{
  int nb = named_contexts.size() + named_objects.size();
  int nl = nb;
  if (nl > amount)
    nl = amount;

  a_list.value = new Binding[ nl ];

  Iterator contexts = named_contexts.entries().iterator();
  Iterator objects = named_objects.entries().iterator();

  // Create a binding list.
  for (int i = 0; i < nl; i++)
    {
      if (contexts.hasNext())
        a_list.value [ i ] = mkBinding(contexts.next(), BindingType.ncontext);
      else if (objects.hasNext())
        a_list.value [ i ] = mkBinding(objects.next(), BindingType.nobject);
      else
        throw new InternalError();
    }

  // Create an iterator.
  Binding[] remainder = new Binding[ nb - nl ];
  int p = 0;

  while (contexts.hasNext())
    remainder [ p++ ] = mkBinding(contexts.next(), BindingType.ncontext);

  while (objects.hasNext())
    remainder [ p++ ] = mkBinding(objects.next(), BindingType.nobject);

  Binding_iterator_impl bit = new Binding_iterator_impl(remainder);
  _orb().connect(bit);
  an_iter.value = bit;
}
 
Example 29
Project: JamVM-PH   File: ContextContinuation.java   Source Code and License 5 votes vote down vote up
/**
 * Creates and returns the enumeration over the name bindings that are present
 * the given subcontext. The enumeration elements have the type of
 * {@link NameClassPair}, providing also information about the class of the
 * bound object. The behaviour in the case if the bindings are added or
 * removed later is not defined. The contents of the subcontexts are not
 * included.
 * 
 * @param name
 *          the name of the subcontext
 * @return the enumeration over the names, known for the given subcontext.
 * @throws NamingException
 */
public NamingEnumeration list(Name name) throws NamingException
{
  BindingIteratorHolder bi = new BindingIteratorHolder();
  BindingListHolder bl = new BindingListHolder();

  NamingContext subcontext;

  if (name.size() == 0)
    subcontext = service;
  else
    {
      try
        {
          subcontext = (NamingContextHelper.narrow(service.resolve(toGiop(name))));
        }
      catch (Exception e)
        {
          throw new NamingException(e.toString());
        }

    }

  subcontext.list(howMany, bl, bi);

  return new ListEnumeration(bl, bi, howMany);
}
 
Example 30
Project: JamVM-PH   File: ContextContinuation.java   Source Code and License 5 votes vote down vote up
/**
 * Creates and returns the enumeration over the name bindings that are present
 * the given subcontext. The enumeration elements have the type of
 * {@link NameClassPair}, providing also information about the class of the
 * bound object. The behaviour in the case if the bindings are added or
 * removed later is not defined. The contents of the subcontexts are not
 * included.
 * 
 * @param name
 *          the name of the subcontext
 * @return the enumeration over the names, known for the given subcontext.
 * @throws NamingException
 */
public NamingEnumeration list(String name) throws NamingException
{
  BindingIteratorHolder bi = new BindingIteratorHolder();
  BindingListHolder bl = new BindingListHolder();

  NamingContext subcontext;

  if (name.length() == 0)
    subcontext = service;
  else
    {
      try
        {
          subcontext = (NamingContextHelper.narrow(service.resolve_str(name)));
        }
      catch (Exception e)
        {
          throw new NamingException(e.toString());
        }

    }

  subcontext.list(howMany, bl, bi);

  return new ListEnumeration(bl, bi, howMany);
}
 
Example 31
Project: JamVM-PH   File: ContextContinuation.java   Source Code and License 5 votes vote down vote up
/**
 * Creates and returns the enumeration over the name - object bindings that
 * are present the given subcontext. The enumeration elements have the type of
 * {@link Binding}, providing also information about the class of the bound
 * object. The behaviour in the case if the bindings are added or removed
 * later is not defined. The contents of the subcontexts are not included.
 * 
 * @param name
 *          the name of the subcontext
 * @return the enumeration over the names, known for the given subcontext.
 * @throws NamingException
 */
public NamingEnumeration listBindings(String name) throws NamingException
{
  BindingIteratorHolder bi = new BindingIteratorHolder();
  BindingListHolder bl = new BindingListHolder();

  NamingContext subcontext;

  if (name.length() == 0)
    subcontext = service;
  else
    {
      try
        {
          subcontext = (NamingContextHelper.narrow(service.resolve_str(name)));
        }
      catch (Exception e)
        {
          throw new NamingException(e.toString());
        }

    }

  subcontext.list(howMany, bl, bi);

  return new ListBindingsEnumeration(bl, bi, howMany, subcontext);
}
 
Example 32
Project: JamVM-PH   File: GiopNamingServiceURLContext.java   Source Code and License 5 votes vote down vote up
/**
 * Creates and returns the enumeration over the name bindings that are present
 * the given subcontext. The enumeration elements have the type of
 * {@link NameClassPair}, providing also information about the class of the
 * bound object. The behaviour in the case if the bindings are added or
 * removed later is not defined. The contents of the subcontexts are not
 * included.
 * 
 * @param name
 *          the name of the subcontext
 * @return the enumeration over the names, known for the given subcontext.
 * @throws NamingException
 */
public NamingEnumeration list(String name) throws NamingException
{
  BindingIteratorHolder bi = new BindingIteratorHolder();
  BindingListHolder bl = new BindingListHolder();

  NamingContext subcontext;
  
  String [] n = split(name);
  NamingContextExt service = getService(n[0]);

  if (n[1].length() == 0)
    subcontext = service;
  else
    {
      try
        {
          subcontext = (NamingContextHelper.narrow(service.resolve_str(n[1])));
        }
      catch (Exception e)
        {
          throw new NamingException(e.toString());
        }

    }

  subcontext.list(howMany, bl, bi);

  return new ListEnumeration(bl, bi, howMany);
}
 
Example 33
Project: JamVM-PH   File: GiopNamingServiceURLContext.java   Source Code and License 5 votes vote down vote up
/**
 * Creates and returns the enumeration over the name - object bindings that
 * are present the given subcontext. The enumeration elements have the type of
 * {@link Binding}, providing also information about the class of the bound
 * object. The behaviour in the case if the bindings are added or removed
 * later is not defined. The contents of the subcontexts are not included.
 * 
 * @param name
 *          the name of the subcontext
 * @return the enumeration over the names, known for the given subcontext.
 * @throws NamingException
 */
public NamingEnumeration listBindings(String name) throws NamingException
{
  BindingIteratorHolder bi = new BindingIteratorHolder();
  BindingListHolder bl = new BindingListHolder();

  NamingContext subcontext;
  
  String [] n = split(name);
  NamingContextExt service = getService(n[0]);

  if (n[1].length() == 0)
    subcontext = service;
  else
    {
      try
        {
          subcontext = (NamingContextHelper.narrow(service.resolve_str(n[1])));
        }
      catch (Exception e)
        {
          throw new NamingException(e.toString());
        }

    }

  subcontext.list(howMany, bl, bi);

  return new ListBindingsEnumeration(bl, bi, howMany, subcontext);
}
 
Example 34
Project: JamVM-PH   File: Ext.java   Source Code and License 5 votes vote down vote up
/** {@inheritDoc} */
public void list(int amount, BindingListHolder a_list,
                 BindingIteratorHolder an_iter
                )
{
  classic.list(amount, a_list, an_iter);
}
 
Example 35
Project: JamVM-PH   File: TransientContext.java   Source Code and License 5 votes vote down vote up
/**
 * Iterate over all bindings, defined in this namind context.
 *
 * @param amount the maximal number of context to return in the
 * holder a_list. The remaining bindings are accessible via iterator
 * an_iter. If the parameter amount is zero, all bindings are accessed only
 * via this iterator.
 *
 * This implementation list contexts first, then objects.
 *
 * @param a_list the holder, where the returned bindigs are stored.
 * @param an_iter the iterator that can be used to access the remaining
 * bindings.
 */
public void list(int amount, BindingListHolder a_list,
                 BindingIteratorHolder an_iter
                )
{
  int nb = named_contexts.size() + named_objects.size();
  int nl = nb;
  if (nl > amount)
    nl = amount;

  a_list.value = new Binding[ nl ];

  Iterator contexts = named_contexts.entries().iterator();
  Iterator objects = named_objects.entries().iterator();

  // Create a binding list.
  for (int i = 0; i < nl; i++)
    {
      if (contexts.hasNext())
        a_list.value [ i ] = mkBinding(contexts.next(), BindingType.ncontext);
      else if (objects.hasNext())
        a_list.value [ i ] = mkBinding(objects.next(), BindingType.nobject);
      else
        throw new InternalError();
    }

  // Create an iterator.
  Binding[] remainder = new Binding[ nb - nl ];
  int p = 0;

  while (contexts.hasNext())
    remainder [ p++ ] = mkBinding(contexts.next(), BindingType.ncontext);

  while (objects.hasNext())
    remainder [ p++ ] = mkBinding(objects.next(), BindingType.nobject);

  Binding_iterator_impl bit = new Binding_iterator_impl(remainder);
  _orb().connect(bit);
  an_iter.value = bit;
}
 
Example 36
Project: classpath   File: ContextContinuation.java   Source Code and License 5 votes vote down vote up
/**
 * Creates and returns the enumeration over the name bindings that are present
 * the given subcontext. The enumeration elements have the type of
 * {@link NameClassPair}, providing also information about the class of the
 * bound object. The behaviour in the case if the bindings are added or
 * removed later is not defined. The contents of the subcontexts are not
 * included.
 *
 * @param name
 *          the name of the subcontext
 * @return the enumeration over the names, known for the given subcontext.
 * @throws NamingException
 */
public NamingEnumeration list(Name name) throws NamingException
{
  BindingIteratorHolder bi = new BindingIteratorHolder();
  BindingListHolder bl = new BindingListHolder();

  NamingContext subcontext;

  if (name.size() == 0)
    subcontext = service;
  else
    {
      try
        {
          subcontext = (NamingContextHelper.narrow(service.resolve(toGiop(name))));
        }
      catch (Exception e)
        {
          throw new NamingException(e.toString());
        }

    }

  subcontext.list(howMany, bl, bi);

  return new ListEnumeration(bl, bi, howMany);
}
 
Example 37
Project: classpath   File: ContextContinuation.java   Source Code and License 5 votes vote down vote up
/**
 * Creates and returns the enumeration over the name bindings that are present
 * the given subcontext. The enumeration elements have the type of
 * {@link NameClassPair}, providing also information about the class of the
 * bound object. The behaviour in the case if the bindings are added or
 * removed later is not defined. The contents of the subcontexts are not
 * included.
 *
 * @param name
 *          the name of the subcontext
 * @return the enumeration over the names, known for the given subcontext.
 * @throws NamingException
 */
public NamingEnumeration list(String name) throws NamingException
{
  BindingIteratorHolder bi = new BindingIteratorHolder();
  BindingListHolder bl = new BindingListHolder();

  NamingContext subcontext;

  if (name.length() == 0)
    subcontext = service;
  else
    {
      try
        {
          subcontext = (NamingContextHelper.narrow(service.resolve_str(name)));
        }
      catch (Exception e)
        {
          throw new NamingException(e.toString());
        }

    }

  subcontext.list(howMany, bl, bi);

  return new ListEnumeration(bl, bi, howMany);
}
 
Example 38
Project: classpath   File: ContextContinuation.java   Source Code and License 5 votes vote down vote up
/**
 * Creates and returns the enumeration over the name - object bindings that
 * are present the given subcontext. The enumeration elements have the type of
 * {@link Binding}, providing also information about the class of the bound
 * object. The behaviour in the case if the bindings are added or removed
 * later is not defined. The contents of the subcontexts are not included.
 *
 * @param name
 *          the name of the subcontext
 * @return the enumeration over the names, known for the given subcontext.
 * @throws NamingException
 */
public NamingEnumeration listBindings(String name) throws NamingException
{
  BindingIteratorHolder bi = new BindingIteratorHolder();
  BindingListHolder bl = new BindingListHolder();

  NamingContext subcontext;

  if (name.length() == 0)
    subcontext = service;
  else
    {
      try
        {
          subcontext = (NamingContextHelper.narrow(service.resolve_str(name)));
        }
      catch (Exception e)
        {
          throw new NamingException(e.toString());
        }

    }

  subcontext.list(howMany, bl, bi);

  return new ListBindingsEnumeration(bl, bi, howMany, subcontext);
}
 
Example 39
Project: classpath   File: GiopNamingServiceURLContext.java   Source Code and License 5 votes vote down vote up
/**
 * Creates and returns the enumeration over the name bindings that are present
 * the given subcontext. The enumeration elements have the type of
 * {@link NameClassPair}, providing also information about the class of the
 * bound object. The behaviour in the case if the bindings are added or
 * removed later is not defined. The contents of the subcontexts are not
 * included.
 *
 * @param name
 *          the name of the subcontext
 * @return the enumeration over the names, known for the given subcontext.
 * @throws NamingException
 */
public NamingEnumeration list(String name) throws NamingException
{
  BindingIteratorHolder bi = new BindingIteratorHolder();
  BindingListHolder bl = new BindingListHolder();

  NamingContext subcontext;

  String [] n = split(name);
  NamingContextExt service = getService(n[0]);

  if (n[1].length() == 0)
    subcontext = service;
  else
    {
      try
        {
          subcontext = (NamingContextHelper.narrow(service.resolve_str(n[1])));
        }
      catch (Exception e)
        {
          throw new NamingException(e.toString());
        }

    }

  subcontext.list(howMany, bl, bi);

  return new ListEnumeration(bl, bi, howMany);
}
 
Example 40
Project: classpath   File: GiopNamingServiceURLContext.java   Source Code and License 5 votes vote down vote up
/**
 * Creates and returns the enumeration over the name - object bindings that
 * are present the given subcontext. The enumeration elements have the type of
 * {@link Binding}, providing also information about the class of the bound
 * object. The behaviour in the case if the bindings are added or removed
 * later is not defined. The contents of the subcontexts are not included.
 *
 * @param name
 *          the name of the subcontext
 * @return the enumeration over the names, known for the given subcontext.
 * @throws NamingException
 */
public NamingEnumeration listBindings(String name) throws NamingException
{
  BindingIteratorHolder bi = new BindingIteratorHolder();
  BindingListHolder bl = new BindingListHolder();

  NamingContext subcontext;

  String [] n = split(name);
  NamingContextExt service = getService(n[0]);

  if (n[1].length() == 0)
    subcontext = service;
  else
    {
      try
        {
          subcontext = (NamingContextHelper.narrow(service.resolve_str(n[1])));
        }
      catch (Exception e)
        {
          throw new NamingException(e.toString());
        }

    }

  subcontext.list(howMany, bl, bi);

  return new ListBindingsEnumeration(bl, bi, howMany, subcontext);
}
 
Example 41
Project: classpath   File: Ext.java   Source Code and License 5 votes vote down vote up
/** {@inheritDoc} */
public void list(int amount, BindingListHolder a_list,
                 BindingIteratorHolder an_iter
                )
{
  classic.list(amount, a_list, an_iter);
}
 
Example 42
Project: classpath   File: TransientContext.java   Source Code and License 5 votes vote down vote up
/**
 * Iterate over all bindings, defined in this namind context.
 *
 * @param amount the maximal number of context to return in the
 * holder a_list. The remaining bindings are accessible via iterator
 * an_iter. If the parameter amount is zero, all bindings are accessed only
 * via this iterator.
 *
 * This implementation list contexts first, then objects.
 *
 * @param a_list the holder, where the returned bindigs are stored.
 * @param an_iter the iterator that can be used to access the remaining
 * bindings.
 */
public void list(int amount, BindingListHolder a_list,
                 BindingIteratorHolder an_iter
                )
{
  int nb = named_contexts.size() + named_objects.size();
  int nl = nb;
  if (nl > amount)
    nl = amount;

  a_list.value = new Binding[ nl ];

  Iterator contexts = named_contexts.entries().iterator();
  Iterator objects = named_objects.entries().iterator();

  // Create a binding list.
  for (int i = 0; i < nl; i++)
    {
      if (contexts.hasNext())
        a_list.value [ i ] = mkBinding(contexts.next(), BindingType.ncontext);
      else if (objects.hasNext())
        a_list.value [ i ] = mkBinding(objects.next(), BindingType.nobject);
      else
        throw new InternalError();
    }

  // Create an iterator.
  Binding[] remainder = new Binding[ nb - nl ];
  int p = 0;

  while (contexts.hasNext())
    remainder [ p++ ] = mkBinding(contexts.next(), BindingType.ncontext);

  while (objects.hasNext())
    remainder [ p++ ] = mkBinding(objects.next(), BindingType.nobject);

  Binding_iterator_impl bit = new Binding_iterator_impl(remainder);
  _orb().connect(bit);
  an_iter.value = bit;
}
 
Example 43
Project: javify   File: GiopNamingEnumeration.java   Source Code and License 4 votes vote down vote up
GiopNamingEnumeration(BindingListHolder bh, BindingIteratorHolder bih, int batchSize)
{
  list = bh.value;
  iterator = bih.value;
  batch = batchSize;
}
 
Example 44
Project: jvm-stm   File: GiopNamingEnumeration.java   Source Code and License 4 votes vote down vote up
GiopNamingEnumeration(BindingListHolder bh, BindingIteratorHolder bih, int batchSize)
{
  list = bh.value;
  iterator = bih.value;
  batch = batchSize;
}
 
Example 45
Project: JamVM-PH   File: GiopNamingEnumeration.java   Source Code and License 4 votes vote down vote up
GiopNamingEnumeration(BindingListHolder bh, BindingIteratorHolder bih, int batchSize)
{
  list = bh.value;
  iterator = bih.value;
  batch = batchSize;
}
 
Example 46
Project: classpath   File: GiopNamingEnumeration.java   Source Code and License 4 votes vote down vote up
GiopNamingEnumeration(BindingListHolder bh, BindingIteratorHolder bih, int batchSize)
{
  list = bh.value;
  iterator = bih.value;
  batch = batchSize;
}
 
Example 47
Project: javify   File: ListBindingsEnumeration.java   Source Code and License 3 votes vote down vote up
/**
 * Create the new enumeration
 *
 * @param bh
 *          holder, containing the first portion of the bindings
 * @param bih
 *          the iterator, containing the remaining bindings
 * @param batchSize
 *          the number of bindings the the iterator will be requested to
 *          return as a single pack
 * @param aService
 *          the naming service, used to obtain the objects, bound to the
 *          names.
 */
public ListBindingsEnumeration(BindingListHolder bh,
                               BindingIteratorHolder bih, int batchSize,
                               NamingContext aService)
{
  super(bh, bih, batchSize);
  service = aService;
}
 
Example 48
Project: jvm-stm   File: ListBindingsEnumeration.java   Source Code and License 3 votes vote down vote up
/**
 * Create the new enumeration
 * 
 * @param bh
 *          holder, containing the first portion of the bindings
 * @param bih
 *          the iterator, containing the remaining bindings
 * @param batchSize
 *          the number of bindings the the iterator will be requested to
 *          return as a single pack
 * @param aService
 *          the naming service, used to obtain the objects, bound to the
 *          names.
 */
public ListBindingsEnumeration(BindingListHolder bh, 
                               BindingIteratorHolder bih, int batchSize, 
                               NamingContext aService)
{
  super(bh, bih, batchSize);
  service = aService;
}
 
Example 49
Project: JamVM-PH   File: ListBindingsEnumeration.java   Source Code and License 3 votes vote down vote up
/**
 * Create the new enumeration
 * 
 * @param bh
 *          holder, containing the first portion of the bindings
 * @param bih
 *          the iterator, containing the remaining bindings
 * @param batchSize
 *          the number of bindings the the iterator will be requested to
 *          return as a single pack
 * @param aService
 *          the naming service, used to obtain the objects, bound to the
 *          names.
 */
public ListBindingsEnumeration(BindingListHolder bh, 
                               BindingIteratorHolder bih, int batchSize, 
                               NamingContext aService)
{
  super(bh, bih, batchSize);
  service = aService;
}
 
Example 50
Project: classpath   File: ListBindingsEnumeration.java   Source Code and License 3 votes vote down vote up
/**
 * Create the new enumeration
 *
 * @param bh
 *          holder, containing the first portion of the bindings
 * @param bih
 *          the iterator, containing the remaining bindings
 * @param batchSize
 *          the number of bindings the the iterator will be requested to
 *          return as a single pack
 * @param aService
 *          the naming service, used to obtain the objects, bound to the
 *          names.
 */
public ListBindingsEnumeration(BindingListHolder bh,
                               BindingIteratorHolder bih, int batchSize,
                               NamingContext aService)
{
  super(bh, bih, batchSize);
  service = aService;
}
 
Example 51
Project: OpenJSharp   File: NamingContextDataStore.java   Source Code and License 2 votes vote down vote up
/**
 * Method which implements listing the contents of this
 * NamingContext and return a binding list and a binding iterator.
 * @param how_many The number of requested bindings in the BindingList.
 * @param bl The BindingList as an out parameter.
 * @param bi The BindingIterator as an out parameter.
 * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA system exceptions.
 */
void List(int how_many, BindingListHolder bl, BindingIteratorHolder bi)
    throws org.omg.CORBA.SystemException;
 
Example 52
Project: openjdk-jdk10   File: NamingContextDataStore.java   Source Code and License 2 votes vote down vote up
/**
 * Method which implements listing the contents of this
 * NamingContext and return a binding list and a binding iterator.
 * @param how_many The number of requested bindings in the BindingList.
 * @param bl The BindingList as an out parameter.
 * @param bi The BindingIterator as an out parameter.
 * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA system exceptions.
 */
void List(int how_many, BindingListHolder bl, BindingIteratorHolder bi)
    throws org.omg.CORBA.SystemException;
 
Example 53
Project: openjdk9   File: NamingContextDataStore.java   Source Code and License 2 votes vote down vote up
/**
 * Method which implements listing the contents of this
 * NamingContext and return a binding list and a binding iterator.
 * @param how_many The number of requested bindings in the BindingList.
 * @param bl The BindingList as an out parameter.
 * @param bi The BindingIterator as an out parameter.
 * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA system exceptions.
 */
void List(int how_many, BindingListHolder bl, BindingIteratorHolder bi)
    throws org.omg.CORBA.SystemException;
 
Example 54
Project: lookaside_java-1.8.0-openjdk   File: NamingContextDataStore.java   Source Code and License 2 votes vote down vote up
/**
 * Method which implements listing the contents of this
 * NamingContext and return a binding list and a binding iterator.
 * @param how_many The number of requested bindings in the BindingList.
 * @param bl The BindingList as an out parameter.
 * @param bi The BindingIterator as an out parameter.
 * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA system exceptions.
 */
void List(int how_many, BindingListHolder bl, BindingIteratorHolder bi)
    throws org.omg.CORBA.SystemException;
 
Example 55
Project: jdk8u_corba   File: NamingContextDataStore.java   Source Code and License 2 votes vote down vote up
/**
 * Method which implements listing the contents of this
 * NamingContext and return a binding list and a binding iterator.
 * @param how_many The number of requested bindings in the BindingList.
 * @param bl The BindingList as an out parameter.
 * @param bi The BindingIterator as an out parameter.
 * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA system exceptions.
 */
void List(int how_many, BindingListHolder bl, BindingIteratorHolder bi)
    throws org.omg.CORBA.SystemException;
 
Example 56
Project: javify   File: ListEnumeration.java   Source Code and License 2 votes vote down vote up
/**
 * Create the new enumeration
 *
 * @param bh
 *          holder, containing the first portion of the bindings
 * @param bih
 *          the iterator, containing the remaining bindings
 * @param batchSize
 *          the number of bindings the the iterator will be requested to
 *          return as a single pack
 */
public ListEnumeration(BindingListHolder bh,
                               BindingIteratorHolder bih, int batchSize)
{
  super(bh, bih, batchSize);
}
 
Example 57
Project: jvm-stm   File: ListEnumeration.java   Source Code and License 2 votes vote down vote up
/**
 * Create the new enumeration
 * 
 * @param bh
 *          holder, containing the first portion of the bindings
 * @param bih
 *          the iterator, containing the remaining bindings
 * @param batchSize
 *          the number of bindings the the iterator will be requested to
 *          return as a single pack
 */
public ListEnumeration(BindingListHolder bh, 
                               BindingIteratorHolder bih, int batchSize)
{
  super(bh, bih, batchSize);
}
 
Example 58
Project: infobip-open-jdk-8   File: NamingContextDataStore.java   Source Code and License 2 votes vote down vote up
/**
 * Method which implements listing the contents of this
 * NamingContext and return a binding list and a binding iterator.
 * @param how_many The number of requested bindings in the BindingList.
 * @param bl The BindingList as an out parameter.
 * @param bi The BindingIterator as an out parameter.
 * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA system exceptions.
 */
void List(int how_many, BindingListHolder bl, BindingIteratorHolder bi)
    throws org.omg.CORBA.SystemException;
 
Example 59
Project: openjdk-source-code-learn   File: NamingContextDataStore.java   Source Code and License 2 votes vote down vote up
/**
 * Method which implements listing the contents of this
 * NamingContext and return a binding list and a binding iterator.
 * @param how_many The number of requested bindings in the BindingList.
 * @param bl The BindingList as an out parameter.
 * @param bi The BindingIterator as an out parameter.
 * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA system exceptions.
 */
void List(int how_many, BindingListHolder bl, BindingIteratorHolder bi)
    throws org.omg.CORBA.SystemException;
 
Example 60
Project: OLD-OpenJDK8   File: NamingContextDataStore.java   Source Code and License 2 votes vote down vote up
/**
 * Method which implements listing the contents of this
 * NamingContext and return a binding list and a binding iterator.
 * @param how_many The number of requested bindings in the BindingList.
 * @param bl The BindingList as an out parameter.
 * @param bi The BindingIterator as an out parameter.
 * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA system exceptions.
 */
void List(int how_many, BindingListHolder bl, BindingIteratorHolder bi)
    throws org.omg.CORBA.SystemException;