org.springframework.context.expression.BeanFactoryAccessor Java Examples
The following examples show how to use
org.springframework.context.expression.BeanFactoryAccessor.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DatastoreRepositoryFactory.java From spring-cloud-gcp with Apache License 2.0 | 6 votes |
private QueryMethodEvaluationContextProvider delegateContextProvider( QueryMethodEvaluationContextProvider evaluationContextProvider) { return new QueryMethodEvaluationContextProvider() { @Override public <T extends Parameters<?, ?>> EvaluationContext getEvaluationContext( T parameters, Object[] parameterValues) { StandardEvaluationContext evaluationContext = (StandardEvaluationContext) evaluationContextProvider .getEvaluationContext(parameters, parameterValues); evaluationContext.setRootObject( DatastoreRepositoryFactory.this.applicationContext); evaluationContext.addPropertyAccessor(new BeanFactoryAccessor()); evaluationContext.setBeanResolver(new BeanFactoryResolver( DatastoreRepositoryFactory.this.applicationContext)); return evaluationContext; } }; }
Example #2
Source File: SpannerRepositoryFactory.java From spring-cloud-gcp with Apache License 2.0 | 6 votes |
private QueryMethodEvaluationContextProvider delegateContextProvider( QueryMethodEvaluationContextProvider evaluationContextProvider) { return new QueryMethodEvaluationContextProvider() { @Override public <T extends Parameters<?, ?>> EvaluationContext getEvaluationContext( T parameters, Object[] parameterValues) { StandardEvaluationContext evaluationContext = (StandardEvaluationContext) evaluationContextProvider .getEvaluationContext(parameters, parameterValues); evaluationContext .setRootObject(SpannerRepositoryFactory.this.applicationContext); evaluationContext.addPropertyAccessor(new BeanFactoryAccessor()); evaluationContext.setBeanResolver(new BeanFactoryResolver( SpannerRepositoryFactory.this.applicationContext)); return evaluationContext; } }; }
Example #3
Source File: ArangoTemplate.java From spring-data with Apache License 2.0 | 5 votes |
@Override public void setApplicationContext(final ApplicationContext applicationContext) throws BeansException { context.setRootObject(applicationContext); context.setBeanResolver(new BeanFactoryResolver(applicationContext)); context.addPropertyAccessor(new BeanFactoryAccessor()); eventPublisher = applicationContext; arango._setCursorInitializer(new ArangoCursorInitializer(converter, applicationContext)); }
Example #4
Source File: SimpleSolrPersistentEntity.java From dubbox with Apache License 2.0 | 5 votes |
@Override public void setApplicationContext(ApplicationContext applicationContext) throws BeansException { context.addPropertyAccessor(new BeanFactoryAccessor()); context.setBeanResolver(new BeanFactoryResolver(applicationContext)); context.setRootObject(applicationContext); }
Example #5
Source File: DatastorePersistentEntityImpl.java From spring-cloud-gcp with Apache License 2.0 | 5 votes |
@Override public void setApplicationContext(ApplicationContext applicationContext) throws BeansException { this.context.addPropertyAccessor(new BeanFactoryAccessor()); this.context.setBeanResolver(new BeanFactoryResolver(applicationContext)); this.context.setRootObject(applicationContext); }
Example #6
Source File: DefaultArangoPersistentEntity.java From spring-data with Apache License 2.0 | 4 votes |
@Override public void setApplicationContext(final ApplicationContext applicationContext) throws BeansException { context.setRootObject(applicationContext); context.setBeanResolver(new BeanFactoryResolver(applicationContext)); context.addPropertyAccessor(new BeanFactoryAccessor()); }
Example #7
Source File: BasicCosmosPersistentEntity.java From spring-data-cosmosdb with MIT License | 4 votes |
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException { context.addPropertyAccessor(new BeanFactoryAccessor()); context.setBeanResolver(new BeanFactoryResolver(applicationContext)); context.setRootObject(applicationContext); }
Example #8
Source File: SpannerPersistentEntityImpl.java From spring-cloud-gcp with Apache License 2.0 | 4 votes |
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException { this.context.addPropertyAccessor(new BeanFactoryAccessor()); this.context.setBeanResolver(new BeanFactoryResolver(applicationContext)); this.context.setRootObject(applicationContext); }
Example #9
Source File: SimpleCratePersistentEntity.java From spring-data-crate with Apache License 2.0 | 4 votes |
@Override public void setApplicationContext(ApplicationContext applicationContext) throws BeansException { context.addPropertyAccessor(new BeanFactoryAccessor()); context.setBeanResolver(new BeanFactoryResolver(applicationContext)); context.setRootObject(applicationContext); }