Spring Framework NamespaceHandlerSupport - 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 NamespaceHandlerSupport class.

This code example shows how to use the following methods:
 
package com.foo; 
 
import org.springframework.beans.factory.xml.NamespaceHandlerSupport;
 
public class ComponentNamespaceHandler extends NamespaceHandlerSupport {
	@Override 
	public void init() { 
		registerBeanDefinitionParser("component", 
				new ComponentBeanDefinitionParser()); 
	} 
} 
9
CodeRank
This code example shows how to use the following methods:
 * {@link NamespaceHandler} for the '{@code oxm}' namespace. 
 * 
 * @author Arjen Poutsma 
 * @since 3.0 
 */ 
public class OxmNamespaceHandler extends NamespaceHandlerSupport {
 
	@Override 
	public void init() { 
		registerBeanDefinitionParser("jaxb2-marshaller", new Jaxb2MarshallerBeanDefinitionParser()); 
		registerBeanDefinitionParser("jibx-marshaller", new JibxMarshallerBeanDefinitionParser()); 
		registerBeanDefinitionParser("xmlbeans-marshaller", new XmlBeansMarshallerBeanDefinitionParser()); 
		registerBeanDefinitionParser("castor-marshaller", new CastorMarshallerBeanDefinitionParser()); 
	} 
 
} 
9
CodeRank
This code example shows how to use the following methods:
 * @author Mark Fisher 
 * @author Juergen Hoeller 
 * @author Stephane Nicoll 
 * @since 2.5 
 */ 
public class JmsNamespaceHandler extends NamespaceHandlerSupport {
 
	@Override 
	public void init() { 
		registerBeanDefinitionParser("listener-container", new JmsListenerContainerParser()); 
		registerBeanDefinitionParser("jca-listener-container", new JcaListenerContainerParser()); 
		registerBeanDefinitionParser("annotation-driven", new AnnotationDrivenJmsBeanDefinitionParser()); 
	} 
 
} 
9
CodeRank
This code example shows how to use the following methods:registerBeanDefinitionParser
 * @author Ryan Heaton 
 */ 
public class OAuthSecurityNamespaceHandler extends NamespaceHandlerSupport {
 
  public void init() { 
    registerBeanDefinitionParser("provider", new OAuthProviderBeanDefinitionParser()); 
    registerBeanDefinitionParser("consumer-details-service", new ConsumerServiceBeanDefinitionParser()); 
    registerBeanDefinitionParser("token-services", new TokenServiceBeanDefinitionParser()); 
    registerBeanDefinitionParser("verifier-services", new VerifierServiceBeanDefinitionParser()); 
    registerBeanDefinitionParser("consumer", new OAuthConsumerBeanDefinitionParser()); 
    registerBeanDefinitionParser("resource-details-service", new ProtectedResourceDetailsBeanDefinitionParser()); 
    registerBeanDefinitionParser("expression-handler", new ExpressionHandlerBeanDefinitionParser()); 
  } 
} 
8
CodeRank
This code example shows how to use the following methods:
 * configuration namespace. 
 * 
 * @author Brian Clozel 
 * @since 4.0 
 */ 
public class WebSocketNamespaceHandler extends NamespaceHandlerSupport {
 
	private static boolean isSpringMessagingPresent = ClassUtils.isPresent(
			"org.springframework.messaging.Message", WebSocketNamespaceHandler.class.getClassLoader());
 
 
	@Override 
	public void init() { 
		registerBeanDefinitionParser("handlers", new HandlersBeanDefinitionParser()); 
		if (isSpringMessagingPresent) {
			registerBeanDefinitionParser("message-broker", new MessageBrokerBeanDefinitionParser()); 
		} 
	} 
 
} 
9
CodeRank
This code example shows how to use the following methods:registerBeanDefinitionParser
	/** 
	 * @see NamespaceHandler#init() 
	 */ 
	@Override 
	public void init() { 
		this.registerBeanDefinitionParser("job", new JobParser());
		this.registerBeanDefinitionParser("flow", new TopLevelFlowParser());
		this.registerBeanDefinitionParser("step", new TopLevelStepParser());
		this.registerBeanDefinitionParser("job-repository", new JobRepositoryParser());
		this.registerBeanDefinitionParser("job-listener", new TopLevelJobListenerParser());
		this.registerBeanDefinitionParser("step-listener", new TopLevelStepListenerParser());
	} 
 
} 
8
CodeRank
This code example shows how to use the following methods:
 * 
 * @author Rob Harrop 
 * @author Juergen Hoeller 
 * @since 2.0 
 */ 
public class TxNamespaceHandler extends NamespaceHandlerSupport {
 
	static final String TRANSACTION_MANAGER_ATTRIBUTE = "transaction-manager";
 
	static final String DEFAULT_TRANSACTION_MANAGER_BEAN_NAME = "transactionManager";
 
 
	static String getTransactionManagerName(Element element) {
		return (element.hasAttribute(TRANSACTION_MANAGER_ATTRIBUTE) ?
				element.getAttribute(TRANSACTION_MANAGER_ATTRIBUTE) : DEFAULT_TRANSACTION_MANAGER_BEAN_NAME);
	} 
 
 
	@Override 
	public void init() { 
9
CodeRank
This code example shows how to use the following methods:
 
/** 
 * @author Ryan Heaton 
 * @author Dave Syer 
 */ 
public class OAuth2SecurityNamespaceHandler extends NamespaceHandlerSupport {
 
	public void init() { 
		registerBeanDefinitionParser("authorization-server", new AuthorizationServerBeanDefinitionParser()); 
		registerBeanDefinitionParser("resource-server", new ResourceServerBeanDefinitionParser()); 
		registerBeanDefinitionParser("client-details-service", new ClientDetailsServiceBeanDefinitionParser()); 
		registerBeanDefinitionParser("client", new ClientBeanDefinitionParser()); 
		registerBeanDefinitionParser("resource", new ResourceBeanDefinitionParser()); 
		registerBeanDefinitionParser("rest-template", new RestTemplateBeanDefinitionParser()); 
		registerBeanDefinitionParser("expression-handler", new ExpressionHandlerBeanDefinitionParser()); 
		registerBeanDefinitionParser("web-expression-handler", new WebExpressionHandlerBeanDefinitionParser()); 
	} 
} 
8
CodeRank
This code example shows how to use the following methods:
import org.springframework.beans.factory.xml.NamespaceHandlerSupport;
 
/** 
 * Hazelcast Custom Namespace Definitions. 
 */ 
public class HazelcastNamespaceHandler extends NamespaceHandlerSupport {
 
    public void init() { 
        registerBeanDefinitionParser("config", new HazelcastConfigBeanDefinitionParser()); 
        registerBeanDefinitionParser("hazelcast", new HazelcastInstanceDefinitionParser()); 
        registerBeanDefinitionParser("client", new HazelcastClientBeanDefinitionParser()); 
        registerBeanDefinitionParser("hibernate-region-factory", new RegionFactoryBeanDefinitionParser()); 
        final String[] types = {
                "map", 
                "multiMap", 
                "replicatedmap", 
                "queue", 
                "topic", 
                "set", 
                "list", 
8
CodeRank
This code example shows how to use the following methods:
package org.infinispan.spring.config; 
 
import org.springframework.beans.factory.xml.NamespaceHandlerSupport;
 
/** 
 * {@link org.springframework.beans.factory.xml.NamespaceHandler} for Infinispan-based caches. 
 * 
 * @author Marius Bogoevici 
 */ 
public class InfinispanNamespaceHandler extends NamespaceHandlerSupport {
 
   @Override 
   public void init() { 
      registerBeanDefinitionParser("embedded-cache-manager", new InfinispanEmbeddedCacheManagerBeanDefinitionParser()); 
      registerBeanDefinitionParser("remote-cache-manager", new InfinispanRemoteCacheManagerBeanDefinitionParser()); 
      registerBeanDefinitionParser("container-cache-manager", new InfinispanContainerCacheManagerBeanDefinitionParser()); 
   } 
 
} 

8
CodeRank
See Code Examples for Spring Framework NamespaceHandlerSupport Methods: