|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The ListerMBean interface provides a general mechanism for returning lists.
Derived MBeans extend this interface to add methods that access the data of the current object in the list. This is different from the iterator model (where the next method returns the next object in the list) because 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 as follows:
CloseableList list = ...;
while (list.hasCurrent()) {
}
list.close();
@author Copyright (c) 2003 BEA Systems, Inc. All Rights Reserved.
Method Summary | |
void |
advance(java.lang.String cursor)
Advances the list to the next element in the list. |
void |
close(java.lang.String cursor)
Indicates that the caller is finished 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, and 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/docs81 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |