Please note that this documentation is not final and is subject to change.

Java™ Platform
Standard Ed. 7

DRAFT ea-b76

javax.management
Annotation Type NotificationInfos


@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.


Required Element Summary
Modifier and Type Required Element and Description
 NotificationInfo[] value
          The NotificationInfo annotations.
 

Element Detail

value

public abstract NotificationInfo[] value

The NotificationInfo annotations.


Java™ Platform
Standard Ed. 7

DRAFT ea-b76

Submit a bug or feature

Copyright 2009 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.