Internal configuration information for a managed bean (MBean) descriptor.
8586878889909192939495
} ObjectInputStream ois=new ObjectInputStream(stream); Thread.currentThread().setContextClassLoader(ManagedBean.class.getClassLoader()); Object obj=ois.readObject(); //log.info("Reading " + obj); ManagedBean beans[]=(ManagedBean[])obj; // after all are read without error for( int i=0; i<beans.length; i++ ) { mbeans.add(beans[i]); }
177417751776177717781779178017811782178317841785
env.setName(envName); env.setType(type); nresources.addEnvironment(env); // Return the corresponding MBean name ManagedBean managed = Registry.getRegistry(null, null) .findManagedBean("ContextEnvironment"); ObjectName oname = MBeanUtils.createObjectName(managed.getDomain(), env); return (oname.toString()); }
508050815082508350845085508650875088508950905091
51125113511451155116511751185119512051215122
resource.setName(resourceName); resource.setType(type); nresources.addResource(resource); // Return the corresponding MBean name ManagedBean managed = Registry.getRegistry(null, null) .findManagedBean("ContextResource"); ObjectName oname = MBeanUtils.createObjectName(managed.getDomain(), resource); return (oname.toString()); }
51465147514851495150515151525153515451555156
resourceLink.setName(resourceLinkName); resourceLink.setType(type); nresources.addResourceLink(resourceLink); // Return the corresponding MBean name ManagedBean managed = Registry.getRegistry(null, null) .findManagedBean("ContextResourceLink"); ObjectName oname = MBeanUtils.createObjectName(managed.getDomain(), resourceLink); return (oname.toString()); }
180618071808180918101811181218131814181518161817
18411842184318441845184618471848184918501851
183184185186187188189190191192193
env.setName(envName); env.setType(type); nresources.addEnvironment(env); // Return the corresponding MBean name ManagedBean managed = registry.findManagedBean("ContextEnvironment"); ObjectName oname = MBeanUtils.createObjectName(managed.getDomain(), env); return (oname.toString()); }
214215216217218219220221222223224
resource.setName(resourceName); resource.setType(type); nresources.addResource(resource); // Return the corresponding MBean name ManagedBean managed = registry.findManagedBean("ContextResource"); ObjectName oname = MBeanUtils.createObjectName(managed.getDomain(), resource); return (oname.toString()); }
248249250251252253254255256257
resourceLink.setName(resourceLinkName); resourceLink.setType(type); nresources.addResourceLink(resourceLink); // Return the corresponding MBean name ManagedBean managed = registry.findManagedBean("ContextResourceLink"); ObjectName oname = MBeanUtils.createObjectName(managed.getDomain(), resourceLink); return (oname.toString()); }