|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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 |
public boolean haveCurrent(java.lang.String cursor) throws InvalidCursorException
cursor
- - The cursor returned from a previous list method.public void advance(java.lang.String cursor) throws InvalidCursorException
cursor
- - The cursor returned from a previous list method.public void close(java.lang.String cursor) throws InvalidCursorException
cursor
- - The cursor returned from a previous list method.
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs81b |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |