Class ProxyFactory.IndicesCallbackFilter

  • All Implemented Interfaces:
    net.sf.cglib.proxy.CallbackFilter
    Enclosing class:
    ProxyFactory<T>

    private static class ProxyFactory.IndicesCallbackFilter
    extends java.lang.Object
    implements net.sf.cglib.proxy.CallbackFilter
    A callback filter that maps methods to unique IDs. We define equals and hashCode without using any state related to the injector so that enhanced classes intercepting the same methods can be shared between injectors (and child injectors, etc).
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) int hashCode  
      (package private) java.util.Map<java.lang.Object,​java.lang.Integer> indices  
    • Constructor Summary

      Constructors 
      Constructor Description
      IndicesCallbackFilter​(java.util.List<java.lang.reflect.Method> methods)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int accept​(java.lang.reflect.Method method)  
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • indices

        final java.util.Map<java.lang.Object,​java.lang.Integer> indices
      • hashCode

        final int hashCode
    • Constructor Detail

      • IndicesCallbackFilter

        IndicesCallbackFilter​(java.util.List<java.lang.reflect.Method> methods)
    • Method Detail

      • accept

        public int accept​(java.lang.reflect.Method method)
        Specified by:
        accept in interface net.sf.cglib.proxy.CallbackFilter
      • equals

        public boolean equals​(java.lang.Object o)
        Specified by:
        equals in interface net.sf.cglib.proxy.CallbackFilter
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object