1 23 package com.sun.appserv.management.util.jmx.stringifier; 24 25 26 import com.sun.appserv.management.util.stringifier.Stringifier; 27 import com.sun.appserv.management.util.stringifier.ArrayStringifier; 28 29 30 public class ModelMBeanInfoStringifier extends MBeanInfoStringifier implements Stringifier 31 { 32 public static final ModelMBeanInfoStringifier DEFAULT = new ModelMBeanInfoStringifier(); 33 34 public 35 ModelMBeanInfoStringifier() 36 { 37 super(); 38 } 39 40 public 41 ModelMBeanInfoStringifier( MBeanFeatureInfoStringifierOptions options ) 42 { 43 super( options ); 44 } 45 46 private String 47 stringifyArray( Object [] a, Stringifier stringifier) 48 { 49 String temp = ""; 50 51 if ( a.length != 0 ) 52 { 53 temp = "\n" + ArrayStringifier.stringify( a, "\n", stringifier); 54 } 55 return( temp ); 56 } 57 58 59 MBeanAttributeInfoStringifier 61 getMBeanAttributeInfoStringifier( MBeanFeatureInfoStringifierOptions options ) 62 { 63 return( new ModelMBeanAttributeInfoStringifier(options) ); 64 } 65 66 MBeanOperationInfoStringifier 68 getMBeanOperationInfoStringifier( MBeanFeatureInfoStringifierOptions options ) 69 { 70 return( new ModelMBeanOperationInfoStringifier(options) ); 71 } 72 73 MBeanConstructorInfoStringifier 75 getMBeanConstructorInfoStringifier( MBeanFeatureInfoStringifierOptions options ) 76 { 77 return( new ModelMBeanConstructorInfoStringifier(options) ); 78 } 79 80 MBeanNotificationInfoStringifier 82 getMBeanNotificationInfoStringifier( MBeanFeatureInfoStringifierOptions options ) 83 { 84 return( new ModelMBeanNotificationInfoStringifier(options) ); 85 } 86 } 87 88 89 90 91 92 | Popular Tags |