/** Add the hooks to the interceptors */ public void start() { MBeanServer server = MBeanServerLocator.locateJBoss(); try { if (phaseOneInterceptors != null) { for (ObjectName oname : phaseOneInterceptors) { DeployerInterceptorMBean interceptor = (DeployerInterceptorMBean)MBeanProxy.get(DeployerInterceptorMBean.class, oname, server); interceptor.addPhaseOneHook(this); } } if (phaseTwoInterceptors != null) { for (ObjectName oname : phaseTwoInterceptors) { DeployerInterceptorMBean interceptor = (DeployerInterceptorMBean)MBeanProxy.get(DeployerInterceptorMBean.class, oname, server); interceptor.addPhaseTwoHook(this); } } } catch (MBeanProxyCreationException e) { throw new WSFDeploymentException(e); } }
/** Add the hooks to the interceptors */ public void stop() { MBeanServer server = MBeanServerLocator.locateJBoss(); try { if (phaseOneInterceptors != null) { for (ObjectName oname : phaseOneInterceptors) { DeployerInterceptorMBean interceptor = (DeployerInterceptorMBean)MBeanProxy.get(DeployerInterceptorMBean.class, oname, server); interceptor.removePhaseOneHook(this); } } if (phaseTwoInterceptors != null) { for (ObjectName oname : phaseTwoInterceptors) { DeployerInterceptorMBean interceptor = (DeployerInterceptorMBean)MBeanProxy.get(DeployerInterceptorMBean.class, oname, server); interceptor.removePhaseTwoHook(this); } } } catch (MBeanProxyCreationException e) { throw new WSFDeploymentException(e); } }
/** Add the hooks to the interceptors */ public void start() { MBeanServer server = MBeanServerLocator.locateJBoss(); try { if (phaseOneInterceptors != null) { for (ObjectName oname : phaseOneInterceptors) { DeployerInterceptorMBean interceptor = (DeployerInterceptorMBean)MBeanProxy.get(DeployerInterceptorMBean.class, oname, server); interceptor.addPhaseOneHook(this); } } if (phaseTwoInterceptors != null) { for (ObjectName oname : phaseTwoInterceptors) { DeployerInterceptorMBean interceptor = (DeployerInterceptorMBean)MBeanProxy.get(DeployerInterceptorMBean.class, oname, server); interceptor.addPhaseTwoHook(this); } } } catch (MBeanProxyCreationException e) { throw new WSFDeploymentException(e); } }
/** Add the hooks to the interceptors */ public void stop() { MBeanServer server = MBeanServerLocator.locateJBoss(); try { if (phaseOneInterceptors != null) { for (ObjectName oname : phaseOneInterceptors) { DeployerInterceptorMBean interceptor = (DeployerInterceptorMBean)MBeanProxy.get(DeployerInterceptorMBean.class, oname, server); interceptor.removePhaseOneHook(this); } } if (phaseTwoInterceptors != null) { for (ObjectName oname : phaseTwoInterceptors) { DeployerInterceptorMBean interceptor = (DeployerInterceptorMBean)MBeanProxy.get(DeployerInterceptorMBean.class, oname, server); interceptor.removePhaseTwoHook(this); } } } catch (MBeanProxyCreationException e) { throw new WSFDeploymentException(e); } }
/** Add the hooks to the interceptors */ public void start() { MBeanServer server = MBeanServerLocator.locateJBoss(); try { if (phaseOneInterceptors != null) { for (ObjectName oname : phaseOneInterceptors) { DeployerInterceptorMBean interceptor = (DeployerInterceptorMBean)MBeanProxy.get(DeployerInterceptorMBean.class, oname, server); interceptor.addPhaseOneHook(this); } } if (phaseTwoInterceptors != null) { for (ObjectName oname : phaseTwoInterceptors) { DeployerInterceptorMBean interceptor = (DeployerInterceptorMBean)MBeanProxy.get(DeployerInterceptorMBean.class, oname, server); interceptor.addPhaseTwoHook(this); } } } catch (MBeanProxyCreationException e) { throw new WSFDeploymentException(e); } }
/** Add the hooks to the interceptors */ public void stop() { MBeanServer server = MBeanServerLocator.locateJBoss(); try { if (phaseOneInterceptors != null) { for (ObjectName oname : phaseOneInterceptors) { DeployerInterceptorMBean interceptor = (DeployerInterceptorMBean)MBeanProxy.get(DeployerInterceptorMBean.class, oname, server); interceptor.removePhaseOneHook(this); } } if (phaseTwoInterceptors != null) { for (ObjectName oname : phaseTwoInterceptors) { DeployerInterceptorMBean interceptor = (DeployerInterceptorMBean)MBeanProxy.get(DeployerInterceptorMBean.class, oname, server); interceptor.removePhaseTwoHook(this); } } } catch (MBeanProxyCreationException e) { throw new WSFDeploymentException(e); } }