/* 560 */ beanType.pushInterceptor(createQName, new DefaultElementInterceptor()
/* */ {
/* */ public void add(Object parent, Object child, QName name)
/* */ {
/* 564 */ AbstractBeanMetaData bean = (AbstractBeanMetaData)parent;
/* 565 */ AbstractLifecycleMetaData lifecycle = (AbstractLifecycleMetaData)child;
/* 566 */ lifecycle.setType("create");
/* 567 */ bean.setCreate(lifecycle);
/* */ }
/* */ });
/* 572 */ beanFactoryType.pushInterceptor(createQName, new DefaultElementInterceptor()
/* */ {
/* */ public void add(Object parent, Object child, QName name)
/* */ {
/* 576 */ GenericBeanFactoryMetaData bean = (GenericBeanFactoryMetaData)parent;
/* 577 */ AbstractLifecycleMetaData lifecycle = (AbstractLifecycleMetaData)child;
/* 578 */ lifecycle.setType("create");
/* 579 */ bean.setBeanCreate(lifecycle);
/* */ }
/* */ });
/* 584 */ beanType.pushInterceptor(startQName, new DefaultElementInterceptor()
/* */ {
/* */ public void add(Object parent, Object child, QName name)
/* */ {
/* 588 */ AbstractBeanMetaData bean = (AbstractBeanMetaData)parent;
/* 589 */ AbstractLifecycleMetaData lifecycle = (AbstractLifecycleMetaData)child;
/* 590 */ lifecycle.setType("start");
/* 591 */ bean.setStart(lifecycle);
/* */ }
/* */ });
/* 596 */ beanFactoryType.pushInterceptor(startQName, new DefaultElementInterceptor()
/* */ {
/* */ public void add(Object parent, Object child, QName name)
/* */ {
/* 600 */ GenericBeanFactoryMetaData bean = (GenericBeanFactoryMetaData)parent;
/* 601 */ AbstractLifecycleMetaData lifecycle = (AbstractLifecycleMetaData)child;
/* 602 */ lifecycle.setType("start");
/* 603 */ bean.setBeanStart(lifecycle);
/* */ }
/* */ });
/* 608 */ beanType.pushInterceptor(stopQName, new DefaultElementInterceptor()
/* */ {
/* */ public void add(Object parent, Object child, QName name)
/* */ {
/* 612 */ AbstractBeanMetaData bean = (AbstractBeanMetaData)parent;
/* 613 */ AbstractLifecycleMetaData lifecycle = (AbstractLifecycleMetaData)child;
/* 614 */ lifecycle.setType("stop");
/* 615 */ bean.setStop(lifecycle);
/* */ }
/* */ });
/* 620 */ beanType.pushInterceptor(destroyQName, new DefaultElementInterceptor()
/* */ {
/* */ public void add(Object parent, Object child, QName name)
/* */ {
/* 624 */ AbstractBeanMetaData bean = (AbstractBeanMetaData)parent;
/* 625 */ AbstractLifecycleMetaData lifecycle = (AbstractLifecycleMetaData)child;
/* 626 */ lifecycle.setType("destroy");
/* 627 */ bean.setDestroy(lifecycle);
/* */ }
/* */ });
/* 632 */ TypeBinding lifecycleType = schemaBinding.getType(lifecycleTypeQName);
/* 633 */ lifecycleType.setHandler(new DefaultElementHandler()
/* */ {
/* */ public Object startElement(Object parent, QName name, ElementBinding element)
/* */ {
/* 637 */ return new AbstractLifecycleMetaData();
/* */ }
/* */
/* */ public void attributes(Object o, QName elementName, ElementBinding element, Attributes attrs, NamespaceContext nsCtx)
/* */ {
/* 642 */ AbstractLifecycleMetaData lifecycle = (AbstractLifecycleMetaData)o;
/* 643 */ for (int i = 0; i < attrs.getLength(); i++)
/* */ {
/* 645 */ String localName = attrs.getLocalName(i);
/* 646 */ if ("method".equals(localName))
/* 647 */ lifecycle.setMethodName(attrs.getValue(i));
/* 648 */ else if ("ignored".equals(localName))
/* 649 */ lifecycle.setIgnored(Boolean.parseBoolean(attrs.getValue(i)));
/* */ }
/* */ }
/* */ });
/* 655 */ lifecycleType.pushInterceptor(parameterQName, new DefaultElementInterceptor()
/* */ {
/* */ public void add(Object parent, Object child, QName name)
/* */ {
/* 659 */ AbstractLifecycleMetaData lifecycle = (AbstractLifecycleMetaData)parent;
/* 660 */ AbstractParameterMetaData parameter = (AbstractParameterMetaData)child;
/* 661 */ List parameters = lifecycle.getParameters();
/* 662 */ if (parameters == null)
/* */ {
/* 664 */ parameters = new ArrayList();
/* 665 */ lifecycle.setParameters(parameters);
/* */ }
/* 667 */ parameter.setIndex(parameters.size());
/* 668 */ parameters.add(parameter);
/* */ }
/* */ });