List of usage examples for org.springframework.beans.factory.support AbstractBeanDefinition getAttribute
@Override
@Nullable
public Object getAttribute(String name)
From source file:com.mtgi.analytics.aop.config.TemplateBeanDefinitionParser.java
/** * Overridden to prefer the <code>id</code> attribute of <code>definition</code> if it is defined, over whatever * is in <code>element</code> (which would be the superclass behavior). This allows subclasses to specify an ID * value in {@link #transform(ConfigurableListableBeanFactory, BeanDefinition, Element, ParserContext)} if required. *///from w ww . ja v a 2 s. c o m @Override protected String resolveId(Element element, AbstractBeanDefinition definition, ParserContext parserContext) throws BeanDefinitionStoreException { String id = (String) definition.getAttribute("id"); return id == null ? super.resolveId(element, definition, parserContext) : id; }