Code example for AnnotationAttributes

Methods: getString

0
	@Override 
	public void postProcess(BeanDefinitionBuilder builder, AnnotationRepositoryConfigurationSource config) {
 
		AnnotationAttributes attributes = config.getAttributes();
 
		builder.addPropertyReference("neo4jTemplate", attributes.getString(ANN_NEO4J_TEMPLATE_REF));
		builder.addPropertyReference("neo4jMappingContext", DEFAULT_NEO4J_MAPPING_CONTEXT_REF);
	} 
 
	/* 
	 * (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();
 
		String templateRef = element.getAttribute(NEO4J_TEMPLATE_REF);
		templateRef = StringUtils.hasText(templateRef) ? templateRef : DEFAULT_NEO4J_TEMPLATE_REF;
Connect your IDE to all the code out there  Get Codota for Java