if ("bean".equals(childElement.getLocalName())) { RootBeanDefinition smartInterceptorDef = createSmartInterceptorDefinition(DelegatingSmartSoapEndpointInterceptor.class, childElement, parserContext); BeanDefinitionHolder interceptorDef = createInterceptorDefinition(parserContext, childElement); registerSmartInterceptor(parserContext, smartInterceptorDef); for (Element beanElement : beanElements) { RootBeanDefinition smartInterceptorDef = createSmartInterceptorDefinition(PayloadRootSmartSoapEndpointInterceptor.class, childElement, parserContext); BeanDefinitionHolder interceptorDef = createInterceptorDefinition(parserContext, beanElement); smartInterceptorDef.getConstructorArgumentValues().addIndexedArgumentValue(2, localPart); registerSmartInterceptor(parserContext, smartInterceptorDef); for (Element beanElement : beanElements) { RootBeanDefinition smartInterceptorDef = createSmartInterceptorDefinition(SoapActionSmartEndpointInterceptor.class, childElement, parserContext); BeanDefinitionHolder interceptorDef = createInterceptorDefinition(parserContext, beanElement); smartInterceptorDef.getConstructorArgumentValues().addIndexedArgumentValue(1, soapAction); registerSmartInterceptor(parserContext, smartInterceptorDef);
private BeanReference createInterceptorReference(ParserContext parserContext, Element element) { // A generic reference to any name of any bean. String refName = element.getAttribute("bean"); if (!StringUtils.hasLength(refName)) { // A reference to the id of another bean in the same XML file. refName = element.getAttribute("local"); if (!StringUtils.hasLength(refName)) { error(parserContext, "Either 'bean' or 'local' is required for <ref> element", element); return null; } } if (!StringUtils.hasText(refName)) { error(parserContext, "<ref> element contains empty target attribute", element); return null; } RuntimeBeanReference ref = new RuntimeBeanReference(refName); ref.setSource(parserContext.extractSource(element)); return ref; }
if ("bean".equals(childElement.getLocalName())) { RootBeanDefinition smartInterceptorDef = createSmartInterceptorDefinition(DelegatingSmartSoapEndpointInterceptor.class, childElement, parserContext); BeanDefinitionHolder interceptorDef = createInterceptorDefinition(parserContext, childElement); registerSmartInterceptor(parserContext, smartInterceptorDef); createSmartInterceptorDefinition(DelegatingSmartSoapEndpointInterceptor.class, childElement, parserContext); BeanReference interceptorRef = createInterceptorReference(parserContext, childElement); registerSmartInterceptor(parserContext, smartInterceptorDef); if ("bean".equals(payloadRootChild.getLocalName())) { RootBeanDefinition smartInterceptorDef = createSmartInterceptorDefinition(PayloadRootSmartSoapEndpointInterceptor.class, childElement, parserContext); BeanDefinitionHolder interceptorDef = createInterceptorDefinition(parserContext, payloadRootChild); registerSmartInterceptor(parserContext, smartInterceptorDef); createSmartInterceptorDefinition(PayloadRootSmartSoapEndpointInterceptor.class, childElement, parserContext); BeanReference interceptorRef = createInterceptorReference(parserContext, payloadRootChild); registerSmartInterceptor(parserContext, smartInterceptorDef);
@Override @SuppressWarnings("deprecation") public void init() { registerBeanDefinitionParser("annotation-driven", new AnnotationDrivenBeanDefinitionParser()); registerBeanDefinitionParser("interceptors", new InterceptorsBeanDefinitionParser()); registerBeanDefinitionParser("static-wsdl", new StaticWsdlBeanDefinitionParser()); registerBeanDefinitionParser("dynamic-wsdl", new DynamicWsdlBeanDefinitionParser()); registerBeanDefinitionParser("marshalling-endpoints", new MarshallingEndpointsBeanDefinitionParser()); registerBeanDefinitionParser("xpath-endpoints", new XPathEndpointsBeanDefinitionParser()); } }
if ("bean".equals(childElement.getLocalName())) { RootBeanDefinition smartInterceptorDef = createSmartInterceptorDefinition(DelegatingSmartSoapEndpointInterceptor.class, childElement, parserContext); BeanDefinitionHolder interceptorDef = createInterceptorDefinition(parserContext, childElement); registerSmartInterceptor(parserContext, smartInterceptorDef); createSmartInterceptorDefinition(DelegatingSmartSoapEndpointInterceptor.class, childElement, parserContext); BeanReference interceptorRef = createInterceptorReference(parserContext, childElement); registerSmartInterceptor(parserContext, smartInterceptorDef); if ("bean".equals(payloadRootChild.getLocalName())) { RootBeanDefinition smartInterceptorDef = createSmartInterceptorDefinition(PayloadRootSmartSoapEndpointInterceptor.class, childElement, parserContext); BeanDefinitionHolder interceptorDef = createInterceptorDefinition(parserContext, payloadRootChild); registerSmartInterceptor(parserContext, smartInterceptorDef); createSmartInterceptorDefinition(PayloadRootSmartSoapEndpointInterceptor.class, childElement, parserContext); BeanReference interceptorRef = createInterceptorReference(parserContext, payloadRootChild); registerSmartInterceptor(parserContext, smartInterceptorDef);
@Override @SuppressWarnings("deprecation") public void init() { registerBeanDefinitionParser("annotation-driven", new AnnotationDrivenBeanDefinitionParser()); registerBeanDefinitionParser("interceptors", new InterceptorsBeanDefinitionParser()); registerBeanDefinitionParser("static-wsdl", new StaticWsdlBeanDefinitionParser()); registerBeanDefinitionParser("dynamic-wsdl", new DynamicWsdlBeanDefinitionParser()); registerBeanDefinitionParser("marshalling-endpoints", new MarshallingEndpointsBeanDefinitionParser()); registerBeanDefinitionParser("xpath-endpoints", new XPathEndpointsBeanDefinitionParser()); } }
if ("bean".equals(childElement.getLocalName())) { RootBeanDefinition smartInterceptorDef = createSmartInterceptorDefinition(DelegatingSmartSoapEndpointInterceptor.class, childElement, parserContext); BeanDefinitionHolder interceptorDef = createInterceptorDefinition(parserContext, childElement); registerSmartInterceptor(parserContext, smartInterceptorDef); createSmartInterceptorDefinition(DelegatingSmartSoapEndpointInterceptor.class, childElement, parserContext); BeanReference interceptorRef = createInterceptorReference(parserContext, childElement); registerSmartInterceptor(parserContext, smartInterceptorDef); if ("bean".equals(payloadRootChild.getLocalName())) { RootBeanDefinition smartInterceptorDef = createSmartInterceptorDefinition(PayloadRootSmartSoapEndpointInterceptor.class, childElement, parserContext); BeanDefinitionHolder interceptorDef = createInterceptorDefinition(parserContext, payloadRootChild); registerSmartInterceptor(parserContext, smartInterceptorDef); createSmartInterceptorDefinition(PayloadRootSmartSoapEndpointInterceptor.class, childElement, parserContext); BeanReference interceptorRef = createInterceptorReference(parserContext, payloadRootChild); registerSmartInterceptor(parserContext, smartInterceptorDef);
@Override @SuppressWarnings("deprecation") public void init() { registerBeanDefinitionParser("annotation-driven", new AnnotationDrivenBeanDefinitionParser()); registerBeanDefinitionParser("interceptors", new InterceptorsBeanDefinitionParser()); registerBeanDefinitionParser("static-wsdl", new StaticWsdlBeanDefinitionParser()); registerBeanDefinitionParser("dynamic-wsdl", new DynamicWsdlBeanDefinitionParser()); registerBeanDefinitionParser("marshalling-endpoints", new MarshallingEndpointsBeanDefinitionParser()); registerBeanDefinitionParser("xpath-endpoints", new XPathEndpointsBeanDefinitionParser()); } }
private BeanReference createInterceptorReference(ParserContext parserContext, Element element) { // A generic reference to any name of any bean. String refName = element.getAttribute("bean"); if (!StringUtils.hasLength(refName)) { // A reference to the id of another bean in the same XML file. refName = element.getAttribute("local"); if (!StringUtils.hasLength(refName)) { error(parserContext, "Either 'bean' or 'local' is required for <ref> element", element); return null; } } if (!StringUtils.hasText(refName)) { error(parserContext, "<ref> element contains empty target attribute", element); return null; } RuntimeBeanReference ref = new RuntimeBeanReference(refName); ref.setSource(parserContext.extractSource(element)); return ref; }
public void init() { registerBeanDefinitionParser("annotation-driven", new AnnotationDrivenBeanDefinitionParser()); registerBeanDefinitionParser("interceptors", new InterceptorsBeanDefinitionParser()); registerBeanDefinitionParser("static-wsdl", new StaticWsdlBeanDefinitionParser()); registerBeanDefinitionParser("dynamic-wsdl", new DynamicWsdlBeanDefinitionParser()); registerBeanDefinitionParser("marshalling-endpoints", new MarshallingEndpointsBeanDefinitionParser()); registerBeanDefinitionParser("xpath-endpoints", new XPathEndpointsBeanDefinitionParser()); } }
private BeanReference createInterceptorReference(ParserContext parserContext, Element element) { // A generic reference to any name of any bean. String refName = element.getAttribute("bean"); if (!StringUtils.hasLength(refName)) { // A reference to the id of another bean in the same XML file. refName = element.getAttribute("local"); if (!StringUtils.hasLength(refName)) { error(parserContext, "Either 'bean' or 'local' is required for <ref> element", element); return null; } } if (!StringUtils.hasText(refName)) { error(parserContext, "<ref> element contains empty target attribute", element); return null; } RuntimeBeanReference ref = new RuntimeBeanReference(refName); ref.setSource(parserContext.extractSource(element)); return ref; }