Search in sources :

Example 1 with ManagedNotifications

use of org.apache.cxf.management.annotation.ManagedNotifications in project cxf by apache.

the class ModelMBeanAssembler method getManagedNotifications.

public ManagedNotification[] getManagedNotifications(Class<?> clazz) {
    ManagedNotifications notificationsAnn = clazz.getAnnotation(ManagedNotifications.class);
    ManagedNotification[] result = null;
    if (null == notificationsAnn) {
        return new ManagedNotification[0];
    }
    result = notificationsAnn.value();
    return result;
}
Also used : ManagedNotifications(org.apache.cxf.management.annotation.ManagedNotifications) ManagedNotification(org.apache.cxf.management.annotation.ManagedNotification)

Aggregations

ManagedNotification (org.apache.cxf.management.annotation.ManagedNotification)1 ManagedNotifications (org.apache.cxf.management.annotation.ManagedNotifications)1