| | |
| | | public static void multicastEvent(String actionTypeCd,String orderInfo,String data,String asyn) throws Exception{ |
| | | Class<AppEvent> appEvent = getEvent(actionTypeCd); |
| | | |
| | | Class[] parameterTypes={Object.class,String.class}; |
| | | Class<?>[] parameterTypes={Object.class,String.class}; |
| | | |
| | | Constructor constructor = appEvent.getClass().getConstructor(parameterTypes); |
| | | Constructor<?> constructor = appEvent.getClass().getConstructor(parameterTypes); |
| | | Object[] parameters={orderInfo,data}; |
| | | AppEvent targetAppEvent = (AppEvent)constructor.newInstance(parameters); |
| | | multicastEvent(targetAppEvent,asyn); |
| | |
| | | for(String key : keys){ |
| | | Class<AppEvent> appEvent = getEvent(key); |
| | | |
| | | Class[] parameterTypes={Object.class,AppContext.class,JSONArray.class}; |
| | | Class<?>[] parameterTypes={Object.class,AppContext.class,JSONArray.class}; |
| | | |
| | | Constructor constructor = appEvent.getClass().getConstructor(parameterTypes); |
| | | Constructor<?> constructor = appEvent.getClass().getConstructor(parameterTypes); |
| | | context.setBo_action_type(key); |
| | | Object[] parameters={null,context,data.get(key)}; |
| | | AppEvent targetAppEvent = (AppEvent)constructor.newInstance(parameters); |
| | |
| | | |
| | | Class<AppEvent> appEvent = getEvent(busiOrder.getActionTypeCd()); |
| | | |
| | | Class[] parameterTypes={Object.class,AppContext.class}; |
| | | Class<?>[] parameterTypes={Object.class,AppContext.class}; |
| | | |
| | | Constructor constructor = appEvent.getClass().getConstructor(parameterTypes); |
| | | Constructor<?> constructor = appEvent.getClass().getConstructor(parameterTypes); |
| | | |
| | | Object[] parameters={null,context}; |
| | | |
| | |
| | | |
| | | Class<AppEvent> appEvent = getEvent(busiOrder.getActionTypeCd()); |
| | | |
| | | Class[] parameterTypes={Object.class,AppContext.class}; |
| | | Class<?>[] parameterTypes={Object.class,AppContext.class}; |
| | | |
| | | Constructor constructor = appEvent.getClass().getConstructor(parameterTypes); |
| | | Constructor<?> constructor = appEvent.getClass().getConstructor(parameterTypes); |
| | | |
| | | Object[] parameters={null,context}; |
| | | |