本文整理了Java中javax.management.AttributeList.contains()
方法的一些代码示例,展示了AttributeList.contains()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AttributeList.contains()
方法的具体详情如下:
包路径:javax.management.AttributeList
类名称: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) )
内容来源于网络,如有侵权,请联系作者删除!