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.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).
-
-
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()
-
-
-
Method Detail
-
accept
public int accept(java.lang.reflect.Method method)
- Specified by:
accept
in interfacenet.sf.cglib.proxy.CallbackFilter
-
equals
public boolean equals(java.lang.Object o)
- Specified by:
equals
in interfacenet.sf.cglib.proxy.CallbackFilter
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-