* @version $Rev: 988747 $ $Date: 2010-08-25 01:34:52 +0300 (Wed, 25 Aug 2010) $
*/
public class ScaReferenceBeanDefinitionParser implements BeanDefinitionParser {
public BeanDefinition parse(Element element, ParserContext parserContext) {
BeanDefinitionRegistry registry = parserContext.getRegistry();
if (registry instanceof SCAGenericApplicationContext) {
SCAGenericApplicationContext context = (SCAGenericApplicationContext)registry;
SpringSCAReferenceElement referenceElement =
new SpringSCAReferenceElement(getAttribute(element, "name"), getAttribute(element, "type"));
referenceElement.setDefaultBean(getAttribute(element, "default"));