Annotation Type Notification


  • @Retention(RUNTIME)
    @Target(TYPE)
    public @interface Notification
    The Notification annotation provides a means for an MBean interface to describe the notification it emits. This annotation is expected to be used with AnnotatedStandardEmitterMBean.

    An example of using this annotation is provided below:

    
         @Notification("Example notifications", types = ExampleMBean.NOTIFY_TYPE)
         class ExampleMBean {...}
     

    Since:
    Coherence 12.2.1
    Author:
    hr 2014.01.27
    See Also:
    AnnotatedStandardEmitterMBean
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      String description
      A description of the notification.
      String[] types
      The notification event types the MBean may emit.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String className
      The fully qualified class name of the notification object the MBean may emit.
    • Element Detail

      • description

        String description
        A description of the notification.
        Returns:
        a description of the notification
      • types

        String[] types
        The notification event types the MBean may emit.
        Returns:
        the notification event types the MBean may emit
      • className

        String className
        The fully qualified class name of the notification object the MBean may emit.
        Returns:
        the fully qualified class name of the notification object the MBean may emit.
        Default:
        "javax.management.Notification"