1 23 24 29 30 31 package com.sun.cli.util.stringifier; 32 33 import javax.management.MBeanServerNotification ; 34 35 import java.util.Date ; 36 import javax.management.Notification ; 37 38 39 public class MBeanServerNotificationStringifier 40 extends NotificationStringifier implements Stringifier 41 { 42 public static MBeanServerNotificationStringifier DEFAULT = 43 new MBeanServerNotificationStringifier(); 44 45 public 46 MBeanServerNotificationStringifier( ) 47 { 48 super(); 49 } 50 51 public 52 MBeanServerNotificationStringifier( Options options ) 53 { 54 super( options ); 55 } 56 57 public String 58 stringify( Object o ) 59 { 60 final MBeanServerNotification notif = (MBeanServerNotification )o; 61 62 final StringBuffer b = super._stringify( notif ); 63 append( b, "" ); 64 65 append( b, "registered MBean: " + notif.getMBeanName() ); 66 67 return( b.toString() ); 68 } 69 } 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | Popular Tags |