• 业务插件的不同实现


    AccChartDelete [行: 85] - fireBeforeDeleteEvent(String[])    
    
           private void fireBeforeDeleteEvent(String[] pk_accCharts)
                throws BusinessException {
            EventDispatcher.fireEvent(new BusinessEvent(getMdId(),
                    IEventType.TYPE_DELETE_BEFORE, new Object[] { pk_accCharts }));
        }
    -------------------------------------------------------------------------------------------------------
    SingleBaseService [行: 240] - fireAfterInsertEvent(T)    
    
        protected void fireAfterInsertEvent(T vo) throws BusinessException {
            BDCommonEventUtil eventUtil = new BDCommonEventUtil(getMDId());
            eventUtil.dispatchInsertAfterEvent(vo);
        }
        /**
         * 派发基本档案新增保存后事件.
         * 
         * @param obj
         *            新增已保存的基本档案数据, 其主键与时间戳不应为空.
         * @throws BusinessException
         */
        public void dispatchInsertAfterEvent(Object... obj)
                throws BusinessException {
            if (obj == null || obj.length == 0)
                return;
            String sid = getSourceID(obj[0]);
            EventDispatcher.fireEvent(new BDCommonEvent(sid,
                    IEventType.TYPE_INSERT_AFTER, obj));
        }
        
        nc.bs.businessevent.bd.BDCommonEvent;public class BDCommonEvent extends AbstractBusinessEvent {}
        nc.bs.businessevent;public abstract class AbstractBusinessEvent implements IBusinessEvent,Serializable{}
    
    
        
        
  • 相关阅读:
    支付平台架构
    进程、线程与协程
    WSGI
    TLS(SSL)
    Python logger
    Jedis操作Redis--Hash类型
    Jedis操作Redis--List类型
    Jedis操作Redis--String类型
    SpringMVC整合Apache Shiro
    JDK中的Proxy技术实现AOP功能
  • 原文地址:https://www.cnblogs.com/zzzzw/p/9065651.html
Copyright © 2020-2023  润新知