/* 258 */ deploymentType.pushInterceptor(classloaderQName, new DefaultElementInterceptor()
/* */ {
/* */ public void add(Object parent, Object child, QName name)
/* */ {
/* 262 */ AbstractKernelDeployment deployment = (AbstractKernelDeployment)parent;
/* 263 */ AbstractClassLoaderMetaData classloader = (AbstractClassLoaderMetaData)child;
/* 264 */ deployment.setClassLoader(classloader);
/* */
/* 266 */ List beans = deployment.getBeanFactories();
/* 267 */ if (beans == null)
/* */ {
/* 269 */ beans = new ArrayList();
/* 270 */ deployment.setBeanFactories(beans);
/* */ }
/* 272 */ beans.add(classloader);
/* */ }
/* */ });
/* 277 */ deploymentType.pushInterceptor(beanQName, new DefaultElementInterceptor()
/* */ {
/* */ public void add(Object parent, Object child, QName name)
/* */ {
/* 281 */ AbstractKernelDeployment deployment = (AbstractKernelDeployment)parent;
/* 282 */ AbstractBeanMetaData bean = (AbstractBeanMetaData)child;
/* 283 */ List beans = deployment.getBeanFactories();
/* 284 */ if (beans == null)
/* */ {
/* 286 */ beans = new ArrayList();
/* 287 */ deployment.setBeanFactories(beans);
/* */ }
/* 289 */ beans.add(bean);
/* */ }
/* */ });
/* 294 */ deploymentType.pushInterceptor(beanFactoryQName, new DefaultElementInterceptor()
/* */ {
/* */ public void add(Object parent, Object child, QName name)
/* */ {
/* 298 */ AbstractKernelDeployment deployment = (AbstractKernelDeployment)parent;
/* 299 */ AbstractBeanMetaData bean = (AbstractBeanMetaData)child;
/* 300 */ List beans = deployment.getBeanFactories();
/* 301 */ if (beans == null)
/* */ {
/* 303 */ beans = new ArrayList();
/* 304 */ deployment.setBeanFactories(beans);
/* */ }
/* 306 */ beans.add(bean);
/* */ }
/* */ });
/* 311 */ TypeBinding beanType = schemaBinding.getType(beanTypeQName);
/* */
/* 336 */ beanType.setHandler(new DefaultElementHandler()
/* */ {
/* */ public Object startElement(Object parent, QName name, ElementBinding element)
/* */ {
/* 341 */ return new AbstractBeanMetaData();
/* */ }
/* */
/* */ public void attributes(Object o, QName elementName, ElementBinding element, Attributes attrs, NamespaceContext nsCtx)
/* */ {
/* 346 */ AbstractBeanMetaData bean = (AbstractBeanMetaData)o;
/* 347 */ for (int i = 0; i < attrs.getLength(); i++)
/* */ {
/* 349 */ String localName = attrs.getLocalName(i);
/* 350 */ if ("name".equals(localName))
/* 351 */ bean.setName(attrs.getValue(i));
/* 352 */ else if ("class".equals(localName))
/* 353 */ bean.setBean(attrs.getValue(i));
/* 354 */ else if ("mode".equals(localName))
/* 355 */ bean.setMode(new ControllerMode(attrs.getValue(i)));
/* */ }
/* */ }
/* */ });
/* 361 */ TypeBinding beanFactoryType = schemaBinding.getType(beanFactoryTypeQName);
/* 362 */ beanFactoryType.setHandler(new DefaultElementHandler()
/* */ {
/* */ public Object startElement(Object parent, QName name, ElementBinding element)
/* */ {
/* 366 */ return new GenericBeanFactoryMetaData();
/* */ }
/* */
/* */ public void attributes(Object o, QName elementName, ElementBinding element, Attributes attrs, NamespaceContext nsCtx)
/* */ {
/* 371 */ GenericBeanFactoryMetaData bean = (GenericBeanFactoryMetaData)o;
/* 372 */ for (int i = 0; i < attrs.getLength(); i++)
/* */ {
/* 374 */ String localName = attrs.getLocalName(i);
/* 375 */ if ("name".equals(localName))
/* 376 */ bean.setName(attrs.getValue(i));
/* 377 */ else if ("class".equals(localName))
/* 378 */ bean.setBeanClass(attrs.getValue(i));
/* 379 */ else if ("mode".equals(localName))
/* 380 */ bean.setMode(new ControllerMode(attrs.getValue(i)));
/* */ }
/* */ }
/* */ });
/* 386 */ beanType.pushInterceptor(classloaderQName, new DefaultElementInterceptor()
/* */ {
/* */ public void add(Object parent, Object child, QName name)
/* */ {
/* 390 */ AbstractBeanMetaData bean = (AbstractBeanMetaData)parent;
/* 391 */ AbstractClassLoaderMetaData classloader = (AbstractClassLoaderMetaData)child;
/* 392 */ bean.setClassLoader(classloader);
/* */ }
/* */ });
/* 397 */ beanFactoryType.pushInterceptor(classloaderQName, new DefaultElementInterceptor()
/* */ {
/* */ public void add(Object parent, Object child, QName name)
/* */ {
/* 401 */ GenericBeanFactoryMetaData bean = (GenericBeanFactoryMetaData)parent;
/* 402 */ AbstractClassLoaderMetaData classloader = (AbstractClassLoaderMetaData)child;
/* 403 */ bean.setClassLoader(classloader);
/* */ }
/* */ });
/* 408 */ beanType.pushInterceptor(constructorQName, new DefaultElementInterceptor()
/* */ {
/* */ public void add(Object parent, Object child, QName name)
/* */ {
/* 412 */ AbstractBeanMetaData bean = (AbstractBeanMetaData)parent;
/* 413 */ AbstractConstructorMetaData constructor = (AbstractConstructorMetaData)child;
/* 414 */ bean.setConstructor(constructor);
/* */ }
/* */ });
/* 419 */ beanFactoryType.pushInterceptor(constructorQName, new DefaultElementInterceptor()
/* */ {
/* */ public void add(Object parent, Object child, QName name)
/* */ {
/* 423 */ GenericBeanFactoryMetaData bean = (GenericBeanFactoryMetaData)parent;
/* 424 */ AbstractConstructorMetaData constructor = (AbstractConstructorMetaData)child;
/* 425 */ bean.setBeanConstructor(constructor);
/* */ }
/* */ });
/* 430 */ TypeBinding classloaderType = schemaBinding.getType(classloaderTypeQName);
/* 431 */ configureValueBindings(classloaderType);
/* 432 */ classloaderType.setHandler(new DefaultElementHandler()
/* */ {
/* */ public Object startElement(Object parent, QName name, ElementBinding element)
/* */ {
/* 436 */ return new AbstractClassLoaderMetaData();
/* */ }
/* */
/* */ public void attributes(Object o, QName elementName, ElementBinding element, Attributes attrs, NamespaceContext nsCtx)
/* */ {
/* */ }