Class InterceptorList<E extends org.apache.ibatis.plugin.Interceptor>

java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<E>
com.github.yulichang.toolkit.InterceptorList<E>
All Implemented Interfaces:
Serializable, Cloneable, Iterable<E>, Collection<E>, List<E>, RandomAccess

public class InterceptorList<E extends org.apache.ibatis.plugin.Interceptor> extends ArrayList<E>
mybatis 拦截器列表 用于替换 interceptorChain 中的拦截器列表 保证 MPJInterceptor 再最后一个(第一个执行)
Since:
1.3.0
Author:
yulichang
See Also:
  • Constructor Details

    • InterceptorList

      public InterceptorList()
    • InterceptorList

      public InterceptorList(Collection<? extends E> c)
  • Method Details

    • add

      public boolean add(E e)
      Specified by:
      add in interface Collection<E extends org.apache.ibatis.plugin.Interceptor>
      Specified by:
      add in interface List<E extends org.apache.ibatis.plugin.Interceptor>
      Overrides:
      add in class ArrayList<E extends org.apache.ibatis.plugin.Interceptor>
    • addAll

      public boolean addAll(Collection<? extends E> c)
      Specified by:
      addAll in interface Collection<E extends org.apache.ibatis.plugin.Interceptor>
      Specified by:
      addAll in interface List<E extends org.apache.ibatis.plugin.Interceptor>
      Overrides:
      addAll in class ArrayList<E extends org.apache.ibatis.plugin.Interceptor>
    • addAll

      public boolean addAll(int index, Collection<? extends E> c)
      Specified by:
      addAll in interface List<E extends org.apache.ibatis.plugin.Interceptor>
      Overrides:
      addAll in class ArrayList<E extends org.apache.ibatis.plugin.Interceptor>