Spring Framework AbstractSimpleBeanDefinitionParser - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework AbstractSimpleBeanDefinitionParser class.

This code example shows how to use the following methods:
 * Parser for the {@code <oxm:castor-marshaller/>} element. 
 * 
 * @author Jakub Narloch 
 * @since 3.1 
 */ 
public class CastorMarshallerBeanDefinitionParser extends AbstractSimpleBeanDefinitionParser { 
 
	@Override 
	protected String getBeanClassName(Element element) { 
		return "org.springframework.oxm.castor.CastorMarshaller"; 
	} 
 
} 
7
CodeRank
This code example shows how to use the following methods:
 * Parser for the {@code <oxm:jibx-marshaller/>} element. 
 * 
 * @author Arjen Poutsma 
 * @since 3.0 
 */ 
class JibxMarshallerBeanDefinitionParser extends AbstractSimpleBeanDefinitionParser { 
 
	@Override 
	protected String getBeanClassName(Element element) { 
		return "org.springframework.oxm.jibx.JibxMarshaller"; 
	} 
 
} 
7
CodeRank
This code example shows how to use the following methods:
 * Base class for inbound gateway parsers. 
 * 
 * @author Mark Fisher 
 * @author Gary Russell 
 */ 
public abstract class AbstractInboundGatewayParser extends AbstractSimpleBeanDefinitionParser {
 
	@Override 
	protected String resolveId(Element element, AbstractBeanDefinition definition, ParserContext parserContext)
			throws BeanDefinitionStoreException {
		String id = super.resolveId(element, definition, parserContext);
		if (!StringUtils.hasText(id)) {
			id = element.getAttribute("name");
		} 
		if (!StringUtils.hasText(id)) {
			id = parserContext.getReaderContext().generateBeanName(definition);
		} 
		return id;
	} 
 
6
CodeRank
This code example shows how to use the following methods:
/** 
 * Parser for the Redis <code>&lt;collection&gt;</code> element. 
 *  
 * @author Costin Leau 
 */ 
class RedisCollectionParser extends AbstractSimpleBeanDefinitionParser {
 
	protected Class<?> getBeanClass(Element element) {
		return RedisCollectionFactoryBean.class; 
	} 
 
	protected void postProcess(BeanDefinitionBuilder beanDefinition, Element element) {
		String template = element.getAttribute("template");
		if (StringUtils.hasText(template)) {
			beanDefinition.addPropertyReference("template", template);
		} 
	} 
 
	protected boolean isEligibleAttribute(String attributeName) {
		return super.isEligibleAttribute(attributeName) && (!"template".equals(attributeName));
6
CodeRank
This code example shows how to use the following methods:
 * Parser for the <code>&lt;oxm:jibx-marshaller/&gt; element. 
 * @author Christian Dupuis 
 * @author Arjen Poutsma 
 * @since 1.5.0 
 */ 
class JibxMarshallerBeanDefinitionParser extends AbstractSimpleBeanDefinitionParser { 
 
    private static final String JIBX_MARSHALLER_CLASS_NAME = "org.springframework.oxm.jibx.JibxMarshaller"; 
 
    protected String getBeanClassName(Element element) { 
        return JIBX_MARSHALLER_CLASS_NAME; 
    } 
 
} 
6
CodeRank
This code example shows how to use the following methods:
 * Parser for the <code>&lt;oxm:jaxb1-marshaller/&gt; element. 
 * @author Christian Dupuis 
 * @author Arjen Poutsma 
 * @since 1.5.0 
 */ 
class Jaxb1MarshallerBeanDefinitionParser extends AbstractSimpleBeanDefinitionParser { 
 
    public static final String JAXB1_MARSHALLER_CLASS_NAME = "org.springframework.oxm.jaxb.Jaxb1Marshaller"; 
 
    protected String getBeanClassName(Element element) { 
        return JAXB1_MARSHALLER_CLASS_NAME; 
    } 
} 
6
CodeRank
This code example shows how to use the following methods:
import org.w3c.dom.Element; 
 
import org.apache.cxf.binding.coloc.feature.ColocFeature; 
import org.springframework.beans.factory.xml.AbstractSimpleBeanDefinitionParser; 
 
public class ColocBeanDefinitionParser extends AbstractSimpleBeanDefinitionParser { 
 
    @Override 
    protected Class<?> getBeanClass(Element arg0) { 
        return ColocFeature.class; 
    } 
 
} 
6
CodeRank
This code example shows how to use the following methods:
    } 
 
    @Override 
    protected void parse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) { 
        //To change body of implemented methods use File | Settings | File Templates. 
    } 
} 
6
CodeRank
This code example shows how to use the following methods:
    } 
 
 
    @Override 
    protected void parse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) { 
        //To change body of implemented methods use File | Settings | File Templates. 
    } 
} 
6
CodeRank
This code example shows how to use the following methods:
package com.griddynamics.jagger.xml.beanParsers.workload.balancer; 
 
import com.griddynamics.jagger.invoker.RandomLoadBalancer; 
import com.griddynamics.jagger.invoker.SimpleCircularLoadBalancer; 
import com.griddynamics.jagger.xml.beanParsers.XMLConstants; 
import org.springframework.beans.factory.support.BeanDefinitionBuilder;
import org.springframework.beans.factory.xml.AbstractSimpleBeanDefinitionParser;
import org.springframework.beans.factory.xml.ParserContext;
import org.w3c.dom.Element;
 
public abstract class LoadBalancerDefinitionParser extends AbstractSimpleBeanDefinitionParser {
 
    @Override 
    protected Class getBeanClass(Element element) {
        if (element.hasAttribute(XMLConstants.RANDOM_SEED))
            return RandomLoadBalancer.class; 
        else 
            return SimpleCircularLoadBalancer.class; 
    } 
 

6
CodeRank