// use default delegate class
map.put(mbeanName, DefaultDelegate.class);
}
// delegate factory
MfDelegateFactory delegateFactory=objectFactory.getDelegateFactory(map);
// jxm connection to the application server
MBeanServerConnection mbs = getConnection();
CMM_MBean sourceMbean = null;
String objectName = ConfigReader.getMBeanObjectName(mbean, false);
String tokenizedON =
ObjectNameHelper.tokenize(objectName, _context.getTokens());
// if cmm mbean is not created
if (!objectFactory.isObjectCreated(tokenizedON)) {
sourceMbean = objectFactory.createObject(tokenizedON);
// sets up the delegate
String proxyObjectName=ConfigReader.getMBeanObjectName(mbean, true);
String tokenizedPON =
ObjectNameHelper.tokenize(proxyObjectName,_context.getTokens());
ObjectName pon = ObjectNameHelper.getObjectName(tokenizedPON, mbs);
MfDelegate delegate =
delegateFactory.createDelegate(mbs, sourceMbean, pon);
// instrument the delegate object from descriptor
DelegateFactory df =
new DelegateFactory(mbean, delegate, _context, mbs);
Object d = df.create();