@Bean public SpelPropertyAccessorRegistrar spelPropertyAccessorRegistrar() { return new SpelPropertyAccessorRegistrar(new JsonPropertyAccessor(), new EnvironmentAccessor()); }
/** * Provide a {@link SpelPropertyAccessorRegistrar} supplied * with the {@link JsonPropertyAccessor} and {@link TuplePropertyAccessor}. * This bean is used to customize an * {@link org.springframework.integration.config.IntegrationEvaluationContextFactoryBean}. * for additional {@link org.springframework.expression.PropertyAccessor}s. * @return the SpelPropertyAccessorRegistrar bean * @see org.springframework.integration.config.IntegrationEvaluationContextFactoryBean */ @Bean public static SpelPropertyAccessorRegistrar spelPropertyAccessorRegistrar() { return new SpelPropertyAccessorRegistrar() .add(Introspector.decapitalize(JsonPropertyAccessor.class.getSimpleName()), new JsonPropertyAccessor()) .add(Introspector.decapitalize(TuplePropertyAccessor.class.getSimpleName()), new TuplePropertyAccessor()); }