Package com.google.inject.internal
Class ProxyFactory.IndicesCallbackFilter
- java.lang.Object
-
- com.google.inject.internal.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.CallbackFilterA 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).
-
-
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 intaccept(java.lang.reflect.Method method)booleanequals(java.lang.Object o)inthashCode()
-
-
-
Method Detail
-
accept
public int accept(java.lang.reflect.Method method)
- Specified by:
acceptin interfacenet.sf.cglib.proxy.CallbackFilter
-
equals
public boolean equals(java.lang.Object o)
- Specified by:
equalsin interfacenet.sf.cglib.proxy.CallbackFilter- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-