Search in sources :

Example 6 with BeanFactoryAccessor

use of org.springframework.context.expression.BeanFactoryAccessor in project spring-cloud-gcp by spring-cloud.

the class SpannerPersistentEntityImpl method setApplicationContext.

public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
    this.context.addPropertyAccessor(new BeanFactoryAccessor());
    this.context.setBeanResolver(new BeanFactoryResolver(applicationContext));
    this.context.setRootObject(applicationContext);
}
Also used : BeanFactoryResolver(org.springframework.context.expression.BeanFactoryResolver) BeanFactoryAccessor(org.springframework.context.expression.BeanFactoryAccessor)

Aggregations

BeanFactoryAccessor (org.springframework.context.expression.BeanFactoryAccessor)6 BeanFactoryResolver (org.springframework.context.expression.BeanFactoryResolver)6 StandardEvaluationContext (org.springframework.expression.spel.support.StandardEvaluationContext)3 Parameters (org.springframework.data.repository.query.Parameters)2 QueryMethodEvaluationContextProvider (org.springframework.data.repository.query.QueryMethodEvaluationContextProvider)2 PostConstruct (javax.annotation.PostConstruct)1 ConversionService (org.springframework.core.convert.ConversionService)1 StandardTypeConverter (org.springframework.expression.spel.support.StandardTypeConverter)1 StandardTypeLocator (org.springframework.expression.spel.support.StandardTypeLocator)1