javax.management.AttributeList.contains()方法的使用及代码示例

x33g5p2x  于2022-01-15 转载在 其他  
字(1.2k)|赞(0)|评价(0)|浏览(85)

本文整理了Java中javax.management.AttributeList.contains()方法的一些代码示例,展示了AttributeList.contains()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AttributeList.contains()方法的具体详情如下:
包路径:javax.management.AttributeList
类名称:AttributeList
方法名:contains

AttributeList.contains介绍

暂无

代码示例

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-j2ee-sun-appsrv

private static void addNewExtraProperties(ObjectName objName, Properties props, AttributeList attrList, ServerInterface mejb) throws Exception {
  try{
    String[] signature = new String[]{"javax.management.Attribute"};  //NOI18N
    Object[] params = null;
    if(props.size() > attrList.size()){
      java.util.Enumeration listProps = props.propertyNames();
      while(listProps.hasMoreElements()){
        String propName = listProps.nextElement().toString();
        if(! attrList.contains(propName)){
          Attribute attr = new Attribute(propName, props.getProperty(propName));
          params = new Object[]{attr};
          mejb.invoke(objName, __SetProperty, params, signature);
        }
      }//while
    }
  }catch(Exception ex){
    throw new Exception(ex.getLocalizedMessage(), ex);
  }
}

代码示例来源:origin: net.open-esb.core/esb-manage

for ( Object attrib : instResponse.getAttributes() )
  if ( !setAttributes.contains(attrib) )

相关文章