码迷,mamicode.com
首页 > 其他好文 > 详细

业务插件的不同实现

时间:2018-05-21 10:35:26      阅读:170      评论:0      收藏:0      [点我收藏+]

标签:abstract   extends   charts   插件   after   util   bst   void   业务   

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{}


    
    

 

业务插件的不同实现

标签:abstract   extends   charts   插件   after   util   bst   void   业务   

原文地址:https://www.cnblogs.com/zzzzw/p/9065651.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!