Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INT-3749: Get rid of IECA logic #1482

Closed
wants to merge 1 commit into from

Commits on Jun 24, 2015

  1. INT-3749: Get rid of IECA logic

    JIRA: https://jira.spring.io/browse/INT-3749
    
    Since `IntegrationEvaluationContextAware` isn't so "context-free" resource like `BeanFactory`
     and `ApplicationContext`, but just a specific bean in the context, we can't follow with `BeanPostProcessor` logic - bad architecture by level of responsibility.
     Therefore we should follow with standard Dependency Injection mechanism to retrieve `evaluationContext` for the particular component.
    
     Since we can't rely on the `@Autowired` because SI can be used from the raw XML configuration,
     we use utility method instead. The pattern to get the proper `integrationEvaluationContext` is:
     ```
     @OverRide
     protected void onInit() throws Exception {
     		super.onInit();
     		this.evaluationContext = ExpressionUtils.createStandardEvaluationContext(getBeanFactory());
     }
     ```
    artembilan committed Jun 24, 2015
    Configuration menu
    Copy the full SHA
    cbc8195 View commit details
    Browse the repository at this point in the history