本文整理匯總了Java中javax.management.MBeanOperationInfo.getDescription方法的典型用法代碼示例。如果您正苦於以下問題:Java MBeanOperationInfo.getDescription方法的具體用法?Java MBeanOperationInfo.getDescription怎麽用?Java MBeanOperationInfo.getDescription使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類javax.management.MBeanOperationInfo
的用法示例。
在下文中一共展示了MBeanOperationInfo.getDescription方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getDescription
import javax.management.MBeanOperationInfo; //導入方法依賴的package包/類
/** {@inheritDoc} */
@Override
protected String getDescription(final MBeanOperationInfo op) {
final Method m = getMethod(op);
String descr = op.getDescription();
if (m != null) {
Description d = m.getAnnotation(Description.class);
if (d != null) {
descr = d.value();
}
}
return descr;
}
示例2: getColumnText
import javax.management.MBeanOperationInfo; //導入方法依賴的package包/類
@Override
public String getColumnText(Object element, int columnIndex) {
// 0:Name | 1:Return Type | 2:Impact | 3:Description
MBeanOperationModel model = (MBeanOperationModel) element;
MBeanOperation mbeanOperation = model.getData();
MBeanOperationInfo info = mbeanOperation.getInfo();
switch (columnIndex) {
case 0:
return mbeanOperation.getName();
case 1:
return info.getReturnType();
case 2:
return MBeanOperationDoc.getImpactString(info.getImpact());
case 3:
return info.getDescription();
}
return null;
}