Spring Framework BeanFactoryAccessor - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework BeanFactoryAccessor class.

This code example shows how to use the following methods:
	} 
 
	@Override 
	public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
 
		context.addPropertyAccessor(new BeanFactoryAccessor());
		context.setBeanResolver(new BeanFactoryResolver(applicationContext));
		context.setRootObject(applicationContext);
	} 
 
	private String derivateSolrCoreName() {
 
		String derivativeSolrCoreName = this.typeInformation.getType().getSimpleName().toLowerCase(Locale.ENGLISH);
		SolrDocument solrDocument = findAnnotation(SolrDocument.class);
		if (solrDocument != null) {
			if (StringUtils.hasText(solrDocument.solrCoreName())) {
				derivativeSolrCoreName = solrDocument.solrCoreName();
			} 
		} 
		return derivativeSolrCoreName;
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
        } 
    } 
 
    @Override 
    public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
        context.addPropertyAccessor(new BeanFactoryAccessor());
        context.setBeanResolver(new BeanFactoryResolver(applicationContext));
        context.setRootObject(applicationContext);
    } 
 
    @Override 
    public String getIndexName() {
        return indexName;
    } 
 
    @Override 
    public String getIndexType() {
        return indexType;
    } 
 
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
   * @param applicationContext the application context. 
   * @throws BeansException if setting the application context did go wrong. 
   */ 
  @Override 
  public void setApplicationContext(final ApplicationContext applicationContext) throws BeansException { 
		context.addPropertyAccessor(new BeanFactoryAccessor()); 
		context.setBeanResolver(new BeanFactoryResolver(applicationContext)); 
		context.setRootObject(applicationContext); 
  } 
 
  /** 
   * Returns the expiration time of the entity. 
   * 
   * @return the expiration time. 
   */ 
  public int getExpiry() { 
  	org.springframework.data.couchbase.core.mapping.Document annotation =  
  			getType().getAnnotation(org.springframework.data.couchbase.core.mapping.Document.class); 
    return annotation == null ? 0 : annotation.expiry(); 
  } 
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java