FileDocCategorySizeDatePackage
MBeanOperationInfoStringifier.javaAPI DocGlassfish v2 API3916Fri May 04 22:31:06 BST 2007com.sun.appserv.management.util.jmx.stringifier

MBeanOperationInfoStringifier

public class MBeanOperationInfoStringifier extends MBeanFeatureInfoStringifier implements com.sun.appserv.management.util.stringifier.Stringifier

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

	
		
	
	
		super( );
	
public MBeanOperationInfoStringifier(MBeanFeatureInfoStringifierOptions options)

		super( options );
	
Methods Summary
public static java.lang.StringgetDescription(javax.management.MBeanOperationInfo info)

		return( sOperationDelimiter + "\"" + info.getDescription() + "\"" );
	
public static java.lang.StringgetImpact(javax.management.MBeanOperationInfo info)

		String	impactStr	= null;
		
		switch( info.getImpact() )
		{
			default:								impactStr	= "unknown";	break;
			case MBeanOperationInfo.INFO:			impactStr	= "info";		break;
			case MBeanOperationInfo.ACTION:			impactStr	= "action";		break;
			case MBeanOperationInfo.ACTION_INFO:	impactStr	= "action-info";break;
		}
		
		return( impactStr );
	
public static java.lang.StringgetSignature(javax.management.MBeanOperationInfo info)

		return( getSignature( info, MBeanFeatureInfoStringifierOptions.DEFAULT ) );
	
public static java.lang.StringgetSignature(javax.management.MBeanOperationInfo info, MBeanFeatureInfoStringifierOptions options)

		return( ParamsToString( info.getSignature(), options ) );
	
public java.lang.Stringstringify(java.lang.Object o)

		assert( o != null );
		final MBeanOperationInfo	op	= (MBeanOperationInfo)o;
		
		String	result	= getPresentationTypeString( op.getReturnType() ) + " " + op.getName() + "(";
		
		// create the signature string
		result	= result + getSignature( op, mOptions ) + ")";
					
		String impactStr	= getImpact( op );
		
		result	= result + sOperationDelimiter + "impact=" +impactStr;
			
		if ( mOptions.mIncludeDescription )
		{
			result	= result + getDescription( op );
		}
		
		return( result );