* @version $Rev: 988747 $ $Date: 2010-08-24 15:34:52 -0700 (Tue, 24 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"));