static RuntimeBeanReference parseServerReference(Element elt, ParserContext parserContext) { String server = elt.getAttribute(ATT_SERVER); boolean requiresDefaultName = false; if (!StringUtils.hasText(server)) { server = BeanIds.CONTEXT_SOURCE; requiresDefaultName = true; } RuntimeBeanReference contextSource = new RuntimeBeanReference(server); contextSource.setSource(parserContext.extractSource(elt)); registerPostProcessorIfNecessary(parserContext.getRegistry(), requiresDefaultName); return contextSource; }
ref.setSource(extractSource(ele)); return ref;
ref.setSource(extractSource(ele)); return ref;
ref.setSource(extractSource(ele)); return ref;
ref.setSource(extractSource(ele)); return ref;
static RuntimeBeanReference parseServerReference(Element elt, ParserContext parserContext) { String server = elt.getAttribute(ATT_SERVER); boolean requiresDefaultName = false; if (!StringUtils.hasText(server)) { server = BeanIds.CONTEXT_SOURCE; requiresDefaultName = true; } RuntimeBeanReference contextSource = new RuntimeBeanReference(server); contextSource.setSource(parserContext.extractSource(elt)); registerPostProcessorIfNecessary(parserContext.getRegistry(), requiresDefaultName); return contextSource; }
ref.setSource(extractSource(ele)); return ref;
ref.setSource(extractSource(ele)); return ref;
static RuntimeBeanReference parseServerReference(Element elt, ParserContext parserContext) { String server = elt.getAttribute(ATT_SERVER); boolean requiresDefaultName = false; if (!StringUtils.hasText(server)) { server = BeanIds.CONTEXT_SOURCE; requiresDefaultName = true; } RuntimeBeanReference contextSource = new RuntimeBeanReference(server); contextSource.setSource(parserContext.extractSource(elt)); registerPostProcessorIfNecessary(parserContext.getRegistry(), requiresDefaultName); return contextSource; }
/** * Parses a bean definition using an xsi:type aware version of * BeanDefinitionParserDelegate.parseCustomElement(Element). * * @param element element to parse * @param idAttribute attribute that carries the unique ID for the bean * @param parserContext current parser context * * @return bean definition reference */ public static RuntimeBeanReference parseCustomElement(Element element, String idAttribute, ParserContext parserContext) { createBeanDefinition(element, parserContext); RuntimeBeanReference beanRef = new RuntimeBeanReference(element.getAttributeNS(null, idAttribute)); beanRef.setSource(element); return beanRef; }
static RuntimeBeanReference parseServerReference(Element elt, ParserContext parserContext) { String server = elt.getAttribute(ATT_SERVER); boolean requiresDefaultName = false; if (!StringUtils.hasText(server)) { server = BeanIds.CONTEXT_SOURCE; requiresDefaultName = true; } RuntimeBeanReference contextSource = new RuntimeBeanReference(server); contextSource.setSource(parserContext.extractSource(elt)); registerPostProcessorIfNecessary(parserContext.getRegistry(), requiresDefaultName); return contextSource; }
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; }
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; }
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; }
private Object parseRefElement(Element ele) { // A generic reference to any name of any component. String refName = ele.getAttribute(COMPONENT_ID_ATTR); if (!StringUtils.hasLength(refName)) { error("'" + COMPONENT_ID_ATTR + "' is required for <ref> element", ele); return null; } if (!StringUtils.hasText(refName)) { error("<ref> element contains empty target attribute", ele); return null; } RuntimeBeanReference ref = new InstanceEqualityRuntimeBeanReference(refName); ref.setSource(parserContext.extractSource(ele)); return ref; }
beanRef.setSource(parserContext.extractSource(bindingElement));
ref.setSource(parserContext.extractSource(ele)); return ref; } else if (hasValueAttribute) {