All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.wizzer.app.web.commons.slog.SLogAopConfigration Maven / Gradle / Ivy

There is a newer version: 5.2.8-zookeeper
Show newest version
package cn.wizzer.app.web.commons.slog;

import cn.wizzer.app.web.commons.slog.annotation.SLog;
import org.nutz.aop.MethodInterceptor;
import org.nutz.ioc.Ioc;
import org.nutz.ioc.aop.SimpleAopMaker;
import org.nutz.ioc.loader.annotation.Inject;
import org.nutz.ioc.loader.annotation.IocBean;

import java.lang.reflect.Method;
import java.util.Arrays;
import java.util.List;

/**
 * Created by wizzer on 2016/6/22.
 */
@IocBean(name="$aop_syslog")
public class SLogAopConfigration extends SimpleAopMaker {

    @Inject("refer:$ioc")
    protected Ioc ioc;

    public List makeIt(SLog slog, Method method, Ioc ioc) {
        return Arrays.asList(new SLogAopInterceptor(ioc, slog, method));
    }

    public String[] getName() {
        return new String[0];
    }

    public boolean has(String name) {
        return false;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy