119120121122123124125126127128129
ai.setType( mai.getType()); ai.setReadable( mai.isReadable()); ai.setWriteable( mai.isWritable()); mbean.addAttribute(ai); } MBeanOperationInfo opInfo[]=mbi.getOperations(); for( int i=0; i<opInfo.length; i++ ) { MBeanOperationInfo moi=opInfo[i];
152153154155156157158159160161162
ai.addField(fi); } } // Add this info to our managed bean info managed.addAttribute( ai ); if (log.isTraceEnabled()) { log.trace("Create attribute " + ai); } }
335336337338339340341342343344345
if( gm==null ) ai.setReadable(false); if( sm==null ) ai.setWriteable(false); if( sm!=null || gm!=null ) mbean.addAttribute(ai); } en=invokeAttMap.keys(); while( en.hasMoreElements() ) { String name=(String)en.nextElement();
135136137138139140141142143144145
153154155156157158159160161162163
336337338339340341342343344345346
271272273274275276277278279280281
for (Node descN = firstN; descN != null; descN = DomUtil.getNext( descN )) { AttributeInfo ci=new AttributeInfo(); DomUtil.setAttributes(ci, descN); managed.addAttribute( ci ); } } long t2=System.currentTimeMillis();
255256257258259260261262263264265
348349350351352353354355356357358
AttributeInfo ai=new AttributeInfo(); ai.setName( "jkName" ); ai.setType( "java.lang.String"); ai.setWriteable(false); mbean.addAttribute(ai); for( int i=0; i<getters.size(); i++ ) { String att=(String)getters.get(i); // Register metadata ai=new AttributeInfo();
358359360361362363364365366367368
ai=new AttributeInfo(); ai.setName( att ); ai.setType( "java.lang.String"); if( ! setters.contains(att)) ai.setWriteable(false); mbean.addAttribute(ai); } for( int i=0; i<setters.size(); i++ ) { String att=(String)setters.get(i); if( getters.contains(att)) continue;