protected void addOpenAttribute(String csDescription, Class cls, String csMethodName, TabularType tabularType)
{
Method methodGet = MethodFinder.getMethod(cls, "get"+csMethodName);
boolean bCanGet = true;
if(methodGet == null)
bCanGet = false;
Method methodSet = MethodFinder.getMethod(cls, "set"+csMethodName, CompositeData.class);
boolean bCanSet = true;
if(methodSet == null)
bCanSet = false;
OpenMBeanAttributeInfoSupport attrOpen = new OpenMBeanAttributeInfoSupport(csMethodName, csDescription, tabularType, bCanGet, bCanSet, false);
OpenMBeanAttributeInfoWrapper attr = new OpenMBeanAttributeInfoWrapper(csMethodName, csDescription, attrOpen, methodGet, methodSet);
if(m_arrOpenMBeanAttributeInfosWrapper == null)
m_arrOpenMBeanAttributeInfosWrapper = new ArrayList<OpenMBeanAttributeInfoWrapper>();
m_arrOpenMBeanAttributeInfosWrapper.add(attr);
}
BaseOpenMBean.java 文件源码
java
阅读 29
收藏 0
点赞 0
评论 0
项目:ChronoBike
作者:
评论列表
文章目录