/** * Resolves an endpoint string. If the given string can is a bean name, it is resolved using the application * context. * * @param endpointName the endpoint name * @return the resolved endpoint, or {@code null} if the name could not be resolved */ protected Object resolveStringEndpoint(String endpointName) { if (getApplicationContext().containsBean(endpointName)) { return getApplicationContext().getBean(endpointName); } else { return null; } }
/** * Initializes the interceptors. * * @see #initInterceptors() */ @Override protected void initApplicationContext() throws BeansException { initInterceptors(); }
Object endpoint = getEndpointInternal(messageContext); if (endpoint == null) { endpoint = defaultEndpoint; endpoint = resolveStringEndpoint(endpointName); if (endpoint == null) { return null; return createEndpointInvocationChain(messageContext, endpoint, interceptors.toArray(new EndpointInterceptor[interceptors.size()]));
super.initApplicationContext(); for (String key : temporaryEndpointMap.keySet()) { Object endpoint = temporaryEndpointMap.get(key);
@Override protected final EndpointInvocationChain createEndpointInvocationChain(MessageContext messageContext, Object endpoint, EndpointInterceptor[] interceptors) { for (EndpointMappingKey key : endpoints.keySet()) { if (EndpointMappingType.SOAP_ACTION.equals(key.getType())) { Object messageKey = getSoapAction(messageContext); if (messageKey != null && key.getLookupKey().equals(messageKey)) { return new SoapEndpointInvocationChain(endpoint, interceptors, actorsOrRoles, isUltimateReceiver); } } } return super.createEndpointInvocationChain(messageContext, endpoint, interceptors); }
Object endpoint = getEndpointInternal(messageContext); if (endpoint == null) { endpoint = defaultEndpoint; endpoint = resolveStringEndpoint(endpointName); if (endpoint == null) { return null; return createEndpointInvocationChain(messageContext, endpoint, interceptors.toArray(new EndpointInterceptor[interceptors.size()]));
super.initApplicationContext(); for (String key : temporaryEndpointMap.keySet()) { Object endpoint = temporaryEndpointMap.get(key);
Object endpoint = getEndpointInternal(messageContext); if (endpoint == null) { endpoint = defaultEndpoint; endpoint = resolveStringEndpoint(endpointName); if (endpoint == null) { return null; return createEndpointInvocationChain(messageContext, endpoint, interceptors.toArray(new EndpointInterceptor[interceptors.size()]));
/** * Resolves an endpoint string. If the given string can is a bean name, it is resolved using the application * context. * * @param endpointName the endpoint name * @return the resolved endpoint, or {@code null} if the name could not be resolved */ protected Object resolveStringEndpoint(String endpointName) { if (getApplicationContext().containsBean(endpointName)) { return getApplicationContext().getBean(endpointName); } else { return null; } }
/** * Initializes the interceptors. * * @see #initInterceptors() */ @Override protected void initApplicationContext() throws BeansException { initInterceptors(); }
super.initApplicationContext(); for (String key : temporaryEndpointMap.keySet()) { Object endpoint = temporaryEndpointMap.get(key);
Object endpoint = getEndpointInternal(messageContext); if (endpoint == null) { endpoint = defaultEndpoint; endpoint = resolveStringEndpoint(endpointName); if (endpoint == null) { return null; return createEndpointInvocationChain(messageContext, endpoint, interceptors.toArray(new EndpointInterceptor[interceptors.size()]));
/** * Resolves an endpoint string. If the given string can is a bean name, it is resolved using the application * context. * * @param endpointName the endpoint name * @return the resolved endpoint, or <code>null</code> if the name could not be resolved */ protected Object resolveStringEndpoint(String endpointName) { if (getApplicationContext().containsBean(endpointName)) { return getApplicationContext().getBean(endpointName); } else { return null; } }
/** * Initializes the interceptors. * * @see #initInterceptors() */ @Override protected void initApplicationContext() throws BeansException { initInterceptors(); }
super.initApplicationContext(); for (String key : temporaryEndpointMap.keySet()) { Object endpoint = temporaryEndpointMap.get(key);
/** * Resolves an endpoint string. If the given string can is a bean name, it is resolved using the application * context. * * @param endpointName the endpoint name * @return the resolved endpoint, or {@code null} if the name could not be resolved */ protected Object resolveStringEndpoint(String endpointName) { if (getApplicationContext().containsBean(endpointName)) { return getApplicationContext().getBean(endpointName); } else { return null; } }
/** * Initializes the interceptors. * * @see #initInterceptors() */ @Override protected void initApplicationContext() throws BeansException { initInterceptors(); }
/** * Initialize the specified interceptors, adapting them where necessary. * * @see #setInterceptors */ protected void initInterceptors() { Map<String, SmartEndpointInterceptor> smartInterceptors = BeanFactoryUtils .beansOfTypeIncludingAncestors(getApplicationContext(), SmartEndpointInterceptor.class, true, false); if (!smartInterceptors.isEmpty()) { this.smartInterceptors = smartInterceptors.values().toArray(new SmartEndpointInterceptor[smartInterceptors.size()]); } }
/** * Initialize the specified interceptors, adapting them where necessary. * * @see #setInterceptors */ protected void initInterceptors() { Map<String, SmartEndpointInterceptor> smartInterceptors = BeanFactoryUtils .beansOfTypeIncludingAncestors(getApplicationContext(), SmartEndpointInterceptor.class, true, false); if (!smartInterceptors.isEmpty()) { this.smartInterceptors = smartInterceptors.values().toArray(new SmartEndpointInterceptor[smartInterceptors.size()]); } }
/** * Initialize the specified interceptors, adapting them where necessary. * * @see #setInterceptors */ protected void initInterceptors() { Map<String, SmartEndpointInterceptor> smartInterceptors = BeanFactoryUtils .beansOfTypeIncludingAncestors(getApplicationContext(), SmartEndpointInterceptor.class, true, false); if (!smartInterceptors.isEmpty()) { this.smartInterceptors = smartInterceptors.values().toArray(new SmartEndpointInterceptor[smartInterceptors.size()]); } }