org.sapia.archie.test
Class TestEnumProxy

java.lang.Object
  extended by org.sapia.archie.jndi.proxy.EnumProxy
      extended by org.sapia.archie.test.TestEnumProxy
All Implemented Interfaces:
java.util.Enumeration, javax.naming.NamingEnumeration

public class TestEnumProxy
extends EnumProxy

Author:
Yanick Duchesne
Copyright:
Copyright © 2002-2004 Sapia Open Source Software. All Rights Reserved.
License:
Read the license.txt file of the jar or visit the license page at the Sapia OSS web site

Constructor Summary
TestEnumProxy(javax.naming.Name parentContextName, javax.naming.NamingEnumeration enumeration)
           
 
Method Summary
 java.lang.Object onNext(javax.naming.Name contextName, java.lang.Object next)
          This method is internally called by this class' next() and nextElement() methods.
 
Methods inherited from class org.sapia.archie.jndi.proxy.EnumProxy
close, hasMore, hasMoreElements, next, nextElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestEnumProxy

public TestEnumProxy(javax.naming.Name parentContextName,
                     javax.naming.NamingEnumeration enumeration)
Method Detail

onNext

public java.lang.Object onNext(javax.naming.Name contextName,
                               java.lang.Object next)
                        throws javax.naming.NamingException
Description copied from class: EnumProxy
This method is internally called by this class' next() and nextElement() methods. The objects returned by the next...() methods are passed to this method, in order to allow preprocessing.

This method can be overridden to return an application-defined object, instead of the given instance.

Note that the given object might be an instance of Binding.

Overrides:
onNext in class EnumProxy
Parameters:
contextName - the name of the parent JNDI context.
next - the object that was returned by the iteration.
Returns:
the object to return to the client.
Throws:
javax.naming.NamingException
See Also:
Binding


Copyright © 2010 Sapia OSS. All Rights Reserved.