|
Spring Web Services Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.context.support.ApplicationObjectSupport
org.springframework.ws.server.endpoint.mapping.AbstractEndpointMapping
org.springframework.ws.server.endpoint.mapping.AbstractMethodEndpointMapping
public abstract class AbstractMethodEndpointMapping
Abstract base class for MethodEndpoint mappings.
BeanPostProcessor to look for beans
that qualify as enpoint. The methods of this bean are then registered under a specific key with registerEndpoint(String,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 String |
getLookupKeyForMessage(MessageContext messageContext)
Returns the the endpoint keys for the given message context. |
protected String |
getLookupKeyForMethod(Method method)
Returns the the endpoint keys for the given method. |
protected MethodEndpoint |
lookupEndpoint(String key)
Looks up an endpoint instance for the given keys. |
protected void |
registerEndpoint(String 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. |
| Methods inherited from class org.springframework.ws.server.endpoint.mapping.AbstractEndpointMapping |
|---|
createEndpointInvocationChain, getDefaultEndpoint, getEndpoint, getInterceptors, getOrder, 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 AbstractEndpointMappingnull
Exception - if there is an errorgetLookupKeyForMessage(MessageContext)
protected abstract String getLookupKeyForMessage(MessageContext messageContext)
throws Exception
Exceptionprotected MethodEndpoint lookupEndpoint(String key)
key - key the beans are mapped to
null if not found
protected void registerEndpoint(String 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(String,MethodEndpoint).
getLookupKeyForMethod(Method)protected String 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 | |||||||||