BEA Systems, Inc.

WebLogic Server 8.1 API Reference

weblogic.management.utils
Interface ListerMBean

All Known Subinterfaces:
ActiveDirectoryAuthenticatorMBean, DefaultAuthenticatorMBean, DefaultCredentialMapperMBean, GroupEditorMBean, GroupMemberListerMBean, GroupReaderMBean, IPlanetAuthenticatorMBean, LDAPAuthenticatorMBean, MemberGroupListerMBean, NameListerMBean, NovellAuthenticatorMBean, OpenLDAPAuthenticatorMBean, UserEditorMBean, UserPasswordCredentialMapEditorMBean, UserPasswordCredentialMapReaderMBean, UserReaderMBean

public interface ListerMBean
extends weblogic.management.commo.StandardInterface

Used to return lists. Derived mbeans add methods to get info about the current item. This interface provides a general mechanism for returning lists. The basic concept is that derived mbeans extend this interface to add methods to access the data of the current object in the list. This is different from the iterator model where the next method return the next object in the list. The reason for this pattern is that creating mbeans for each object returned in a list (for example, one mbean per user) is too expensive. In addition, it is not appropriate to return non-mbean or non-primitive types from an mbean. The general iteration pattern is:

CloseableList list = ...; while (list.hasCurrent()) { // read the current element list.advance(); } list.close();

@author Copyright (c) 2002 BEA Systems, Inc. All Rights Reserved.

Author:
Copyright © 2002 BEA Systems, Inc. All Rights Reserved.

Method Summary
 void advance(java.lang.String cursor)
          Advances the list to the next element.
 void close(java.lang.String cursor)
          Indicates that the caller is done using the list and that the resources held on behalf of the list may be released.
 boolean haveCurrent(java.lang.String cursor)
          Returns true if there are more objects in the list, false otherwise.
 
Methods inherited from interface weblogic.management.commo.StandardInterface
wls_getAttributeTag, wls_getConstructorTag, wls_getDisplayName, wls_getInterfaceClassName, wls_getMBeanTag, wls_getNotificationTag, wls_getObjectName, wls_getOperationTag, wls_instanceOf
 

Method Detail

haveCurrent

public boolean haveCurrent(java.lang.String cursor)
                    throws InvalidCursorException
Returns true if there are more objects in the list, false otherwise.

Parameters:
cursor - - The cursor returned from a previous list method.
Throws:
InvalidCursorException -  

advance

public void advance(java.lang.String cursor)
             throws InvalidCursorException
Advances the list to the next element.

Parameters:
cursor - - The cursor returned from a previous list method.
Throws:
InvalidCursorException -  

close

public void close(java.lang.String cursor)
           throws InvalidCursorException
Indicates that the caller is done using the list and that the resources held on behalf of the list may be released. If the caller traverses through all the elements in the list, the caller need not call this method. In other words, it is used to let the caller to get rid of the list without reading each element returned.

Parameters:
cursor - - The cursor returned from a previous list method.
Throws:
InvalidCursorException -  

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs81b