public void postRegister(Boolean b) { ClassLoader mbeanTCL = resourceEntry.getClassLoader(); final ClassLoader ccl = TCLAction.UTIL.getContextClassLoader(); boolean setCl = ccl != mbeanTCL && mbeanTCL != null; if(setCl) { TCLAction.UTIL.setContextClassLoader(mbeanTCL); } try { if (getResource() instanceof MBeanRegistration) ((MBeanRegistration)getResource()).postRegister(b); } finally { TCLAction.UTIL.setContextClassLoader(ccl); } }
public void postRegister(Boolean b) { ClassLoader mbeanTCL = resourceEntry == null ? null : resourceEntry.getClassLoader(); final ClassLoader ccl = TCLAction.UTIL.getContextClassLoader(); boolean setCl = ccl != mbeanTCL && mbeanTCL != null; if(setCl) { TCLAction.UTIL.setContextClassLoader(mbeanTCL); } try { if (getResource() instanceof MBeanRegistration) ((MBeanRegistration)getResource()).postRegister(b); } finally { TCLAction.UTIL.setContextClassLoader(ccl); } }
public void preDeregister() throws Exception { ClassLoader mbeanTCL = resourceEntry == null ? null : resourceEntry.getClassLoader(); final ClassLoader ccl = TCLAction.UTIL.getContextClassLoader(); boolean setCl = ccl != mbeanTCL && mbeanTCL != null; if(setCl) { TCLAction.UTIL.setContextClassLoader(mbeanTCL); } try { if (getResource() instanceof MBeanRegistration) ((MBeanRegistration)getResource()).preDeregister(); } finally { if(setCl) { TCLAction.UTIL.setContextClassLoader(ccl); } } }
public void postDeregister() { ClassLoader mbeanTCL = resourceEntry.getClassLoader(); final ClassLoader ccl = TCLAction.UTIL.getContextClassLoader(); boolean setCl = ccl != mbeanTCL && mbeanTCL != null; if(setCl) { TCLAction.UTIL.setContextClassLoader(mbeanTCL); } try { if (getResource() instanceof MBeanRegistration) ((MBeanRegistration)getResource()).postDeregister(); } finally { if(setCl) { TCLAction.UTIL.setContextClassLoader(ccl); } } } }
public void preDeregister() throws Exception { ClassLoader mbeanTCL = resourceEntry.getClassLoader(); final ClassLoader ccl = TCLAction.UTIL.getContextClassLoader(); boolean setCl = ccl != mbeanTCL && mbeanTCL != null; if(setCl) { TCLAction.UTIL.setContextClassLoader(mbeanTCL); } try { if (getResource() instanceof MBeanRegistration) ((MBeanRegistration)getResource()).preDeregister(); } finally { if(setCl) { TCLAction.UTIL.setContextClassLoader(ccl); } } }
public void postDeregister() { ClassLoader mbeanTCL = resourceEntry == null ? null : resourceEntry.getClassLoader(); final ClassLoader ccl = TCLAction.UTIL.getContextClassLoader(); boolean setCl = ccl != mbeanTCL && mbeanTCL != null; if(setCl) { TCLAction.UTIL.setContextClassLoader(mbeanTCL); } try { if (getResource() instanceof MBeanRegistration) ((MBeanRegistration)getResource()).postDeregister(); } finally { if(setCl) { TCLAction.UTIL.setContextClassLoader(ccl); } } } }
if (getResource() instanceof MBeanRegistration) return ((MBeanRegistration)getResource()).preRegister(server, oname); else return oname;
if (getResource() instanceof MBeanRegistration) return ((MBeanRegistration)getResource()).preRegister(server, oname); else return oname;