org.sapia.archie.jndi.proxy
Class EnumProxy
java.lang.Object
org.sapia.archie.jndi.proxy.EnumProxy
- All Implemented Interfaces:
- java.util.Enumeration, javax.naming.NamingEnumeration
- Direct Known Subclasses:
- TestEnumProxy
public class EnumProxy
- extends java.lang.Object
- implements javax.naming.NamingEnumeration
A proxy class around a NamingEnumeration.
- Author:
- Yanick Duchesne
- Copyright:
- Copyright © 2002-2003 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 |
EnumProxy(javax.naming.Name parentContextName,
javax.naming.NamingEnumeration enumeration)
|
|
Method Summary |
void |
close()
|
boolean |
hasMore()
|
boolean |
hasMoreElements()
|
java.lang.Object |
next()
|
java.lang.Object |
nextElement()
|
protected java.lang.Object |
onNext(javax.naming.Name parent,
java.lang.Object obj)
This method is internally called by this class' next() and
nextElement() methods. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EnumProxy
public EnumProxy(javax.naming.Name parentContextName,
javax.naming.NamingEnumeration enumeration)
close
public void close()
throws javax.naming.NamingException
- Specified by:
close in interface javax.naming.NamingEnumeration
- Throws:
javax.naming.NamingException- See Also:
javax.naming.Namingenumerationeration#close()
hasMore
public boolean hasMore()
throws javax.naming.NamingException
- Specified by:
hasMore in interface javax.naming.NamingEnumeration
- Throws:
javax.naming.NamingException- See Also:
javax.naming.Namingenumerationeration#hasMore()
next
public java.lang.Object next()
throws javax.naming.NamingException
- Specified by:
next in interface javax.naming.NamingEnumeration
- Throws:
javax.naming.NamingException- See Also:
javax.naming.Namingenumerationeration#next()
hasMoreElements
public boolean hasMoreElements()
- Specified by:
hasMoreElements in interface java.util.Enumeration
- See Also:
java.util.enumerationeration#hasMoreElements()
nextElement
public java.lang.Object nextElement()
- Specified by:
nextElement in interface java.util.Enumeration
- See Also:
java.util.enumerationeration#nextElement()
onNext
protected java.lang.Object onNext(javax.naming.Name parent,
java.lang.Object obj)
throws javax.naming.NamingException
- 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.
- Parameters:
parent - the name of the parent JNDI context.obj - 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.