347348349350351352353354355356357
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();
357358359360361362363364365366367
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;
368369370371372373374375376377378
// Register metadata ai=new AttributeInfo(); ai.setName( att ); ai.setType( "java.lang.String"); ai.setReadable(false); mbean.addAttribute(ai); } for( int i=0; i<methods.size(); i++ ) { String att=(String)methods.get(i); // Register metadata OperationInfo oi=new OperationInfo();
195196197198199200201202203204205
ai.addField(fi); } } // Add this info to our managed bean info managed.addAttribute( ai ); if (log.isTraceEnabled()) { log.trace("Create attribute " + ai); } }
378379380381382383384385386387388
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();
236237238239240241242243244245246
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();
389390391392393394395396397398399
399400401402403404405406407408409
410411412413414415416417418419420