@Documented @Retention(value=RUNTIME) @Target(value=TYPE) public @interface Intercepts
@Intercepts({@Signature( type= Executor.class, method = "update", args = {MappedStatement.class ,Object.class})}) public class ExamplePlugin implements Interceptor { @Override public Object intercept(Invocation invocation) throws Throwable { // implement pre-processing if needed Object returnObject = invocation.proceed(); // implement post-processing if needed return returnObject; } }
public abstract Signature[] value
Copyright © 2009–2021 MyBatis.org. All rights reserved.