FileDocCategorySizeDatePackage
AttributeChangeNotificationStringifier.javaAPI DocGlassfish v2 API3132Fri May 04 22:31:04 BST 2007com.sun.appserv.management.util.jmx.stringifier

AttributeChangeNotificationStringifier

public class AttributeChangeNotificationStringifier extends NotificationStringifier implements com.sun.appserv.management.util.stringifier.Stringifier

Fields Summary
public static final AttributeChangeNotificationStringifier
DEFAULT
Constructors Summary
public AttributeChangeNotificationStringifier()

	
		
	 
	
		super();
	
public AttributeChangeNotificationStringifier(Options options)

		super( options );
	
Methods Summary
public java.lang.Stringstringify(java.lang.Object o)

		final AttributeChangeNotification	notif	= (AttributeChangeNotification)o;
		
		final StringBuffer	b	= super._stringify( notif );
		append( b, "" );
		
		final String	attrName	= notif.getAttributeName();
		final String	oldValue	= SmartStringifier.toString( notif.getOldValue() );
		final String	newValue	= SmartStringifier.toString( notif.getNewValue() );
		
		final String msg	= attrName + ": " + oldValue + " => " + newValue;
		b.append( msg );
		
		return( b.toString() );