public class MethodInjectionSite
extends org.fabric3.api.model.type.java.InjectionSite
Externalizable to support deserialization of containing HashMaps. During deserialization, hashCode() is called by the containing map before a Signature has been set, leading to a null pointer. Implement Externalizable avoids this by
setting the Signature before hashCode is invoked.| Constructor and Description |
|---|
MethodInjectionSite(java.lang.reflect.Method method,
int param) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.reflect.Method |
getMethod()
Returns the method or null if this class has been deserialized.
|
int |
getParam()
Returns the index of the parameter being injected.
|
int |
hashCode() |
java.lang.String |
toString() |
public MethodInjectionSite(java.lang.reflect.Method method,
int param)
public int getParam()
public java.lang.reflect.Method getMethod()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object