| Constructor and Description |
|---|
MethodEndpoint(Object bean,
Method method)
Constructs a new method endpoint with the given bean and method.
|
MethodEndpoint(Object bean,
String methodName,
Class<?>... parameterTypes)
Constructs a new method endpoint with the given bean, method name and parameters.
|
MethodEndpoint(String beanName,
BeanFactory beanFactory,
Method method)
Constructs a new method endpoint with the given bean name and method.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Object |
getBean()
Returns the object bean for this method endpoint.
|
Method |
getMethod()
Returns the method for this method endpoint.
|
MethodParameter[] |
getMethodParameters()
Returns the method parameters for this method endpoint.
|
MethodParameter |
getReturnType()
Returns the method return type, as
MethodParameter. |
int |
hashCode() |
Object |
invoke(Object... args)
Invokes this method endpoint with the given arguments.
|
String |
toString() |
public MethodEndpoint(Object bean, Method method)
bean - the object beanmethod - the methodpublic MethodEndpoint(Object bean, String methodName, Class<?>... parameterTypes) throws NoSuchMethodException
bean - the object beanmethodName - the method nameparameterTypes - the method parameter typesNoSuchMethodException - when the method cannot be foundpublic MethodEndpoint(String beanName, BeanFactory beanFactory, Method method)
invoke(Object...) is called.beanName - the bean namebeanFactory - the bean factory to use for bean initializationmethod - the methodpublic Object getBean()
public Method getMethod()
public MethodParameter[] getMethodParameters()
public MethodParameter getReturnType()
MethodParameter.public Object invoke(Object... args) throws Exception
args - the argumentsException - when the method invocation results in an exception