Package org.springframework.beans.factory.parsing

Examples of org.springframework.beans.factory.parsing.CompositeComponentDefinition


*/
public class InterceptorsBeanDefinitionParser implements BeanDefinitionParser {

    @Override
    public BeanDefinition parse(Element element, ParserContext parserContext) {
        CompositeComponentDefinition compDefinition = new CompositeComponentDefinition(element.getTagName(), parserContext.extractSource(element));
        parserContext.pushContainingComponent(compDefinition);
        List<Element> interceptors = DomUtils.getChildElementsByTagName(element, new String[]{"bean", "ref"});

        for (Element interceptor : interceptors) {
            RootBeanDefinition interceptorHolderDef = new RootBeanDefinition(InterceptorHolder.class);
View Full Code Here


    protected final Logger logger = LoggerFactory.getLogger(getClass());

    @Override
    public BeanDefinition parse(Element element, ParserContext parserContext) {
        Object source = parserContext.extractSource(element);
        CompositeComponentDefinition compDefinition = new CompositeComponentDefinition(element.getTagName(), source);
        parserContext.pushContainingComponent(compDefinition);


        //注册ServiceRouter Bean
        RootBeanDefinition serviceRouterDef = new RootBeanDefinition(AnnotationServletServiceRouterFactoryBean.class);
View Full Code Here

  protected String getBeanClassName(Element element) {
    return FLOW_BUILDER_SERVICES_CLASS_NAME;
  }

  protected void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder definitionBuilder) {
    CompositeComponentDefinition componentDefinition = new CompositeComponentDefinition(element.getLocalName(),
        parserContext.extractSource(element));
    parserContext.pushContainingComponent(componentDefinition);

    parseConversionService(element, parserContext, definitionBuilder);
    parseExpressionParser(element, parserContext, definitionBuilder,
View Full Code Here

  public void popAndRegisterContainingComponent() {
    registerComponent(popContainingComponent());
  }

  public void registerComponent(ComponentDefinition component) {
    CompositeComponentDefinition containingComponent = getContainingComponent();
    if (containingComponent != null) {
      containingComponent.addNestedComponent(component);
    }
    else {
      this.readerContext.fireComponentRegistered(component);
    }
  }
View Full Code Here

  protected String getBeanClassName(Element element) {
    return FLOW_REGISTRY_FACTORY_BEAN_CLASS_NAME;
  }

  protected void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder definitionBuilder) {
    CompositeComponentDefinition componentDefinition = new CompositeComponentDefinition(element.getLocalName(),
        parserContext.extractSource(element));
    parserContext.pushContainingComponent(componentDefinition);

    parseFlowBuilderServices(element, parserContext, definitionBuilder);
View Full Code Here

    return FLOW_BUILDER_SERVICES_CLASS_NAME;
  }

  protected void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) {

    CompositeComponentDefinition componentDefinition = new CompositeComponentDefinition(element.getLocalName(),
        parserContext.extractSource(element));
    parserContext.pushContainingComponent(componentDefinition);

    parseConversionService(element, parserContext, builder);
    parseExpressionParser(element, parserContext, builder);
View Full Code Here

        NodeList children = element.getElementsByTagNameNS(element.getNamespaceURI(), "*");

        // validate that exactly one connection info element is defined
        validateConfiguration(children);

        parserContext.pushContainingComponent(new CompositeComponentDefinition(element.getTagName(), parserContext
                .extractSource(element)));

        // Create OAuthConnector bean first
        BeanDefinition oauthConnector = createOAuthConnector((Element) getConnectionNode(children), parserContext);
        // If there is a custom data retriever defined then create the necessary beans and
View Full Code Here

    RememberMeBeanDefinitionParser(String key) {
        this.key = key;
    }

    public BeanDefinition parse(Element element, ParserContext pc) {
        CompositeComponentDefinition compositeDef =
            new CompositeComponentDefinition(element.getTagName(), pc.extractSource(element));
        pc.pushContainingComponent(compositeDef);

        String tokenRepository = element.getAttribute(ATT_TOKEN_REPOSITORY);
        String dataSource = element.getAttribute(ATT_DATA_SOURCE);
        String userServiceRef = element.getAttribute(ATT_USER_SERVICE_REF);
View Full Code Here

     * <p>
     * By the end of this method, the default <tt>FilterChainProxy</tt> bean should have been registered and will have
     * the map of filter chains defined, with the "universal" match pattern mapped to the list of beans which have been parsed here.
     */
    public BeanDefinition parse(Element element, ParserContext pc) {
        CompositeComponentDefinition compositeDef =
            new CompositeComponentDefinition(element.getTagName(), pc.extractSource(element));
        pc.pushContainingComponent(compositeDef);
        final Object source = pc.extractSource(element);

        final String portMapperName = createPortMapper(element, pc);
        final UrlMatcher matcher = createUrlMatcher(element);
View Full Code Here

    private static final String ATT_REF = "ref";

    public BeanDefinition parse(Element element, ParserContext pc) {
        Assert.state(!pc.getRegistry().containsBeanDefinition(BeanIds.AUTHENTICATION_MANAGER),
                "AuthenticationManager has already been registered!");
        pc.pushContainingComponent(new CompositeComponentDefinition(element.getTagName(), pc.extractSource(element)));

        BeanDefinitionBuilder providerManagerBldr = BeanDefinitionBuilder.rootBeanDefinition(ProviderManager.class);

        String alias = element.getAttribute(ATT_ALIAS);
View Full Code Here

TOP

Related Classes of org.springframework.beans.factory.parsing.CompositeComponentDefinition

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.