Class MethodEndpoint
java.lang.Object
org.springframework.ws.server.endpoint.MethodEndpoint
Represents a bean method that will be invoked as part of an incoming Web service message.
- Since:
- 1.0.0
- Author:
- Arjen Poutsma
-
Constructor Summary
ConstructorDescriptionMethodEndpoint
(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, org.springframework.beans.factory.BeanFactory beanFactory, Method method) Constructs a new method endpoint with the given bean name and method. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getBean()
Returns the object bean for this method endpoint.Returns the method for this method endpoint.org.springframework.core.MethodParameter[]
Returns the method parameters for this method endpoint.org.springframework.core.MethodParameter
Returns the method return type, asMethodParameter
.int
hashCode()
Invokes this method endpoint with the given arguments.toString()
-
Constructor Details
-
MethodEndpoint
Constructs a new method endpoint with the given bean and method.- Parameters:
bean
- the object beanmethod
- the method
-
MethodEndpoint
public MethodEndpoint(Object bean, String methodName, Class<?>... parameterTypes) throws NoSuchMethodException Constructs a new method endpoint with the given bean, method name and parameters.- Parameters:
bean
- the object beanmethodName
- the method nameparameterTypes
- the method parameter types- Throws:
NoSuchMethodException
- when the method cannot be found
-
MethodEndpoint
public MethodEndpoint(String beanName, org.springframework.beans.factory.BeanFactory beanFactory, Method method) Constructs a new method endpoint with the given bean name and method. The bean name will be lazily initialized wheninvoke(Object...)
is called.- Parameters:
beanName
- the bean namebeanFactory
- the bean factory to use for bean initializationmethod
- the method
-
-
Method Details
-
getBean
Returns the object bean for this method endpoint. -
getMethod
Returns the method for this method endpoint. -
getMethodParameters
public org.springframework.core.MethodParameter[] getMethodParameters()Returns the method parameters for this method endpoint. -
getReturnType
public org.springframework.core.MethodParameter getReturnType()Returns the method return type, asMethodParameter
. -
invoke
Invokes this method endpoint with the given arguments.- Parameters:
args
- the arguments- Returns:
- the invocation result
- Throws:
Exception
- when the method invocation results in an exception
-
equals
-
hashCode
public int hashCode() -
toString
-