Class NotificationStringifier
- java.lang.Object
-
- org.glassfish.admin.amx.util.jmx.stringifier.NotificationStringifier
-
- All Implemented Interfaces:
Stringifier
- Direct Known Subclasses:
AttributeChangeNotificationStringifier,MBeanServerNotificationStringifier,MonitorNotificationStringifier
public class NotificationStringifier extends Object implements Stringifier
Creates a String representation of anNotification- See Also:
Object.toString()
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNotificationStringifier.Options
-
Field Summary
Fields Modifier and Type Field Description static NotificationStringifierDEFAULTprotected NotificationStringifier.OptionsmOptions
-
Constructor Summary
Constructors Constructor Description NotificationStringifier()NotificationStringifier(NotificationStringifier.Options options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringBuilder_stringify(Notification notif)protected voidappend(StringBuilder b, Object o)Stringstringify(Object o)Produce a String representation of an object.static StringtoString(Object o)
-
-
-
Field Detail
-
DEFAULT
public static final NotificationStringifier DEFAULT
-
mOptions
protected NotificationStringifier.Options mOptions
-
-
Constructor Detail
-
NotificationStringifier
public NotificationStringifier()
-
NotificationStringifier
public NotificationStringifier(NotificationStringifier.Options options)
-
-
Method Detail
-
append
protected void append(StringBuilder b, Object o)
-
stringify
public String stringify(Object o)
Description copied from interface:StringifierProduce a String representation of an object. The actual output has no other semantics; each Stringifier may choose to target a particular type of user.The resulting String should be suitable for display to a user.
- Specified by:
stringifyin interfaceStringifier- Parameters:
o- the Object for which a String should be produced
-
_stringify
protected StringBuilder _stringify(Notification notif)
-
-