|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.context.support.ApplicationObjectSupport org.springframework.ws.server.endpoint.mapping.AbstractEndpointMapping org.springframework.ws.server.endpoint.mapping.AbstractMethodEndpointMapping<T>
public abstract class AbstractMethodEndpointMapping<T>
Abstract base class for MethodEndpoint
mappings.
BeanPostProcessor
to look for beans
that qualify as endpoint. The methods of this bean are then registered under a specific key with registerEndpoint(Object, MethodEndpoint)
.
Field Summary |
---|
Fields inherited from class org.springframework.context.support.ApplicationObjectSupport |
---|
logger |
Fields inherited from interface org.springframework.core.Ordered |
---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
Constructor Summary | |
---|---|
AbstractMethodEndpointMapping()
|
Method Summary | |
---|---|
protected Class<?> |
getEndpointClass(Object endpoint)
Return the class or interface to use for method reflection. |
protected Object |
getEndpointInternal(MessageContext messageContext)
Lookup an endpoint for the given message. |
protected abstract T |
getLookupKeyForMessage(MessageContext messageContext)
Returns the the endpoint keys for the given message context. |
protected T |
getLookupKeyForMethod(Method method)
Returns the the endpoint keys for the given method. |
protected MethodEndpoint |
lookupEndpoint(T key)
Looks up an endpoint instance for the given keys. |
protected void |
registerEndpoint(T key,
MethodEndpoint endpoint)
Register the given endpoint instance under the key. |
protected void |
registerMethods(Object endpoint)
Helper method that registers the methods of the given bean. |
protected void |
registerMethods(String beanName)
Helper method that registers the methods of the given class. |
Methods inherited from class org.springframework.ws.server.endpoint.mapping.AbstractEndpointMapping |
---|
createEndpointInvocationChain, getDefaultEndpoint, getEndpoint, getInterceptors, getOrder, initApplicationContext, initInterceptors, resolveStringEndpoint, setDefaultEndpoint, setInterceptors, setOrder |
Methods inherited from class org.springframework.context.support.ApplicationObjectSupport |
---|
getApplicationContext, getMessageSourceAccessor, initApplicationContext, isContextRequired, requiredContextClass, setApplicationContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractMethodEndpointMapping()
Method Detail |
---|
protected Object getEndpointInternal(MessageContext messageContext) throws Exception
getEndpointInternal
in class AbstractEndpointMapping
null
Exception
- if there is an errorgetLookupKeyForMessage(MessageContext)
protected abstract T getLookupKeyForMessage(MessageContext messageContext) throws Exception
Exception
protected MethodEndpoint lookupEndpoint(T key)
key
- key the beans are mapped to
null
if not foundprotected void registerEndpoint(T key, MethodEndpoint endpoint) throws BeansException
key
- the lookup keyendpoint
- the method endpoint instance
BeansException
- if the endpoint could not be registeredprotected void registerMethods(Object endpoint)
getLookupKeyForMethod(Method)
for each. If this returns a string, the method is registered
using registerEndpoint(Object, MethodEndpoint)
.
getLookupKeyForMethod(Method)
protected void registerMethods(String beanName)
getLookupKeyForMethod(Method)
for each. If this returns a string, the method is registered
using registerEndpoint(Object, MethodEndpoint)
.
getLookupKeyForMethod(Method)
protected T getLookupKeyForMethod(Method method)
null
if the method is not to be
registered, which is the default.
method
- the method
null
if the method is not to be registeredprotected Class<?> getEndpointClass(Object endpoint)
AopUtils.getTargetClass(Object)
.
endpoint
- the bean instance (might be an AOP proxy)
|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |