com.silentgo.core.action.ActionChain Maven / Gradle / Ivy
package com.silentgo.core.action;
import com.silentgo.core.base.Priority;
import com.silentgo.core.config.Const;
import com.silentgo.core.ioc.bean.BeanWrapper;
/**
* Project : silentgo
* com.silentgo.core.IAction
*
* @author teddyzhu
*
* Created by on 16/7/18.
*/
public abstract class ActionChain implements Priority {
public Integer priority() {
return Const.DefaultMax;
}
public BeanWrapper beanWrapper;
public abstract void doAction(ActionParam param) throws Throwable;
public void next(ActionParam param) throws Throwable {
((ActionChain) beanWrapper.getObject()).doAction(param);
}
}