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