|
Java™ Platform Standard Ed. 7 DRAFT ea-b76 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Documented @Inherited @Target(value=TYPE) @Retention(value=RUNTIME) public @interface NotificationInfos
Specifies the kinds of notification an MBean can emit, when this
cannot be represented by a single @NotificationInfo annotation.
For example, this annotation specifies that an MBean can emit
AttributeChangeNotification and JMXConnectionNotification:
@NotificationInfos(@NotificationInfo( types = {AttributeChangeNotification.ATTRIBUTE_CHANGE}, notificationClass = AttributeChangeNotification.class),@NotificationInfo( types = {JMXConnectionNotification.OPENED,JMXConnectionNotification.CLOSED}, notificationClass = JMXConnectionNotification.class) )
If an MBean has both NotificationInfo and NotificationInfos on the same class or interface, the effect is
the same as if the NotificationInfo were moved inside the
NotificationInfos.
| Modifier and Type | Required Element and Description |
|---|---|
NotificationInfo[] |
value
The NotificationInfo annotations. |
| Element Detail |
|---|
public abstract NotificationInfo[] value
The NotificationInfo annotations.
|
Java™ Platform Standard Ed. 7 DRAFT ea-b76 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
Copyright 2009 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.