Package org.springframework.beans

Examples of org.springframework.beans.BeanMetadataElement


     *
     * @param invalidSessionStrategy the {@link InvalidSessionStrategy} to use
     * @param defaultDeniedHandler the {@link AccessDeniedHandler} to use
     */
    void initAccessDeniedHandler(BeanDefinition invalidSessionStrategy, BeanMetadataElement defaultDeniedHandler) {
        BeanMetadataElement accessDeniedHandler = createAccessDeniedHandler(invalidSessionStrategy, defaultDeniedHandler);
        csrfFilter.getPropertyValues().addPropertyValue("accessDeniedHandler", accessDeniedHandler);
    }
View Full Code Here


        return createSecurityFilterChainBean(element, pc, filterChain);
    }

    private BeanReference createSecurityFilterChainBean(Element element, ParserContext pc, List<?> filterChain) {
        BeanMetadataElement filterChainMatcher;

        String requestMatcherRef = element.getAttribute(ATT_REQUEST_MATCHER_REF);
        String filterChainPattern = element.getAttribute(ATT_PATH_PATTERN);

        if (StringUtils.hasText(requestMatcherRef)) {
View Full Code Here

   * @return The insert index.
   */
  private int insertIndex(List<BeanMetadataElement> filterChain) {
    int i;
    for (i = 0; i < filterChain.size(); i++) {
      BeanMetadataElement filter = filterChain.get(i);
      if (filter instanceof BeanDefinition) {
        String beanName = ((BeanDefinition) filter).getBeanClassName();
        if (beanName.equals(ExceptionTranslationFilter.class.getName())) {
           return i + 1;
        }
View Full Code Here

      beanDefinitition = sqsAdapterBuilder.getBeanDefinition();

    } else {
      sqsAdapterBuilder.addPropertyValue("pollableMode", Boolean.TRUE);

      BeanMetadataElement source = sqsAdapterBuilder.getBeanDefinition();
      if (source == null) {
        parserContext.getReaderContext().error(
            "failed to parse source", element);
      }
      BeanDefinitionBuilder adapterBuilder = BeanDefinitionBuilder
View Full Code Here

    if (!chunkElements.isEmpty()) {
      chunkElementParser.parse(chunkElements.get(0), bd, parserContext, stepUnderspecified);
    }
    else {
      BeanMetadataElement bme = null;
      if (StringUtils.hasText(taskletRef)) {
        bme = new RuntimeBeanReference(taskletRef);
      }
      else if (beanElements.size() == 1) {
        Element beanElement = beanElements.get(0);
View Full Code Here

      beanDefinitition = sqsAdapterBuilder.getBeanDefinition();

    } else {
      sqsAdapterBuilder.addPropertyValue("pollableMode", Boolean.TRUE);

      BeanMetadataElement source = sqsAdapterBuilder.getBeanDefinition();
      if (source == null) {
        parserContext.getReaderContext().error(
            "failed to parse source", element);
      }
      BeanDefinitionBuilder adapterBuilder = BeanDefinitionBuilder
View Full Code Here

      beanDefinitition = sqsAdapterBuilder.getBeanDefinition();

    } else {
      sqsAdapterBuilder.addPropertyValue("pollableMode", Boolean.TRUE);

      BeanMetadataElement source = sqsAdapterBuilder.getBeanDefinition();
      if (source == null) {
        parserContext.getReaderContext().error(
            "failed to parse source", element);
      }
      BeanDefinitionBuilder adapterBuilder = BeanDefinitionBuilder
View Full Code Here

TOP

Related Classes of org.springframework.beans.BeanMetadataElement

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.