Code example for Element

Methods: getAttribute

0
	@Override 
	public void postProcess(BeanDefinitionBuilder builder, XmlRepositoryConfigurationSource config) {
 
		Element element = config.getElement();
 
		postProcess(builder, element.getAttribute("transaction-manager-ref"),
				element.getAttribute("entity-manager-factory-ref"), config.getSource());
	} 
 
	/*  
	 * (non-Javadoc) 
	 * @see org.springframework.data.repository.config.RepositoryConfigurationExtensionSupport#postProcess(org.springframework.beans.factory.support.BeanDefinitionBuilder, org.springframework.data.repository.config.AnnotationRepositoryConfigurationSource) 
	 */ 
	@Override 
	public void postProcess(BeanDefinitionBuilder builder, AnnotationRepositoryConfigurationSource config) {
 
		AnnotationAttributes attributes = config.getAttributes();
 
		postProcess(builder, attributes.getString("transactionManagerRef"),
				attributes.getString("entityManagerFactoryRef"), config.getSource());
	}