Search in sources :

Example 1 with ChainBy

use of org.nutz.mvc.annotation.ChainBy in project nutz by nutzam.

the class NutLoading method createChainMaker.

protected ActionChainMaker createChainMaker(NutConfig config, Class<?> mainModule) {
    ChainBy ann = mainModule.getAnnotation(ChainBy.class);
    ActionChainMaker maker = null == ann ? new NutActionChainMaker(new String[] {}) : Loadings.evalObj(config, ann.type(), ann.args());
    if (log.isDebugEnabled())
        log.debugf("@ChainBy(%s)", maker.getClass().getName());
    return maker;
}
Also used : ActionChainMaker(org.nutz.mvc.ActionChainMaker) ChainBy(org.nutz.mvc.annotation.ChainBy)

Aggregations

ActionChainMaker (org.nutz.mvc.ActionChainMaker)1 ChainBy (org.nutz.mvc.annotation.ChainBy)1