Code example for AnnotationAttributes

Methods: getString

0
	 */ 
	@Override 
	public void postProcess(BeanDefinitionBuilder builder, AnnotationRepositoryConfigurationSource config) {
 
		AnnotationAttributes attributes = config.getAttributes();
		builder.addPropertyReference("elasticsearchOperations", attributes.getString("elasticsearchTemplateRef"));
	} 
 
	/*  
	 * (non-Javadoc) 
	 * @see org.springframework.data.repository.config.RepositoryConfigurationExtensionSupport#postProcess(org.springframework.beans.factory.support.BeanDefinitionBuilder, org.springframework.data.repository.config.XmlRepositoryConfigurationSource) 
	 */ 
	@Override 
	public void postProcess(BeanDefinitionBuilder builder, XmlRepositoryConfigurationSource config) {
 
		Element element = config.getElement();
		builder.addPropertyReference("elasticsearchOperations", element.getAttribute("elasticsearch-template-ref"));
	} 
} 
Experience pair programming with AI  Get Codota for Java