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