Examples of BeanHandler


Examples of org.jboss.xb.builder.runtime.BeanHandler

            group.setSkip(Boolean.FALSE);

            // handler for the model group members
            BeanInfo groupBeanInfo = JBossXBBuilder.configuration.getBeanInfo(groupType);
            BeanAdapterFactory propBeanAdapterFactory = createAdapterFactory(DefaultBeanAdapterBuilder.class, groupBeanInfo, null);
            BeanHandler propHandler = new GroupBeanHandler(groupBeanInfo.getName(), propBeanAdapterFactory);
            group.setHandler(propHandler);

            String[] memberOrder = annotation.propOrder();
            if (memberOrder.length == 0 || memberOrder[0].length() == 0)
            {
View Full Code Here

Examples of org.jboss.xb.builder.runtime.BeanHandler

         // entry handler
         BeanAdapterFactory entryAdapterFactory = null;
         BeanInfo entryInfo = JBossXBBuilder.configuration.getBeanInfo(DefaultMapEntry.class);
         entryAdapterFactory = createAdapterFactory(DefaultBeanAdapterBuilder.class, entryInfo, null);
         BeanHandler entryHandler = new BeanHandler(entryInfo.getName(), entryAdapterFactory);

         TypeBinding entryType = null;
         TypeInfo entryTypeInfo = null;

         // bind the entry element if present
View Full Code Here

Examples of org.jboss.xb.builder.runtime.BeanHandler

      }
      catch (Throwable t)
      {
         throw new RuntimeException("Error creating BeanAdapterFactory for " + beanAdapterBuilderClass.getName(), t);
      }
      BeanHandler handler = new BeanHandler(beanInfo.getName(), beanAdapterFactory);
      typeBinding.setHandler(handler);
      if (trace)
         log.trace("Created BeanHandler for type=" + beanInfo.getName() + " factory=" + factory);

      // Look through the properties
View Full Code Here

Examples of org.jboss.xb.builder.runtime.BeanHandler

               catch (Throwable t)
               {
                  throw new RuntimeException("Error creating BeanAdapterFactory for "
                        + DefaultBeanAdapterBuilder.class.getName(), t);
               }
               BeanHandler propHandler = new BeanHandler(propBeanInfo.getName(), propBeanAdapterFactory);
               propertyGroup.setHandler(propHandler);

               String[] memberOrder = xmlModelGroup.propOrder();
               if (memberOrder.length == 0 || memberOrder[0].length() == 0)
               {
View Full Code Here

Examples of org.jboss.xb.builder.runtime.BeanHandler

/*      */     }
/*      */     catch (Throwable t)
/*      */     {
/*  777 */       throw new RuntimeException("Error creating BeanAdapterFactory for " + beanAdapterBuilderClass.getName(), t);
/*      */     }
/*  779 */     BeanHandler handler = new BeanHandler(beanInfo.getName(), beanAdapterFactory);
/*  780 */     typeBinding.setHandler(handler);
/*  781 */     if (this.trace) {
/*  782 */       log.trace("Created BeanHandler for type=" + beanInfo.getName() + " factory=" + factory);
/*      */     }
/*      */
View Full Code Here

Examples of org.jboss.xb.builder.runtime.BeanHandler

/*      */           catch (Throwable t)
/*      */           {
/* 1301 */             throw new RuntimeException("Error creating BeanAdapterFactory for " + DefaultBeanAdapterBuilder.class.getName(), t);
/*      */           }
/*      */
/* 1304 */           BeanHandler propHandler = new BeanHandler(propBeanInfo.getName(), propBeanAdapterFactory);
/* 1305 */           propertyGroup.setHandler(propHandler);
/*      */
/* 1307 */           String[] memberOrder = xmlModelGroup.propOrder();
/* 1308 */           if ((memberOrder.length == 0) || (memberOrder[0].length() == 0))
/*      */           {
View Full Code Here

Examples of org.jboss.xb.builder.runtime.BeanHandler

         assertTrue(type == typeBinding);
     
      ParticleHandler particleHandler = typeBinding.getHandler();
      assertNotNull(particleHandler);
      assertTrue(particleHandler instanceof BeanHandler);
      BeanHandler beanInfoElementHandler = (BeanHandler) particleHandler;
      BeanAdapterFactory beanAdapterFactory = beanInfoElementHandler.getBeanAdapterFactory();
      assertTrue(beanAdapterFactory instanceof AbstractBeanAdapterFactory);
      AbstractBeanAdapterFactory abstractBeanAdapterFactory = (AbstractBeanAdapterFactory) beanAdapterFactory;
      assertEquals(root.getName(), abstractBeanAdapterFactory.getBeanInfo().getName());
   }
View Full Code Here

Examples of org.jboss.xb.builder.runtime.BeanHandler

      assertTrue(type == typeBinding);
     
      ParticleHandler particleHandler = typeBinding.getHandler();
      assertNotNull(particleHandler);
      assertTrue(particleHandler instanceof BeanHandler);
      BeanHandler beanInfoElementHandler = (BeanHandler) particleHandler;
      BeanAdapterFactory beanAdapterFactory = beanInfoElementHandler.getBeanAdapterFactory();
      assertTrue(beanAdapterFactory instanceof TestBeanAdapterFactory);
   }
View Full Code Here

Examples of org.jboss.xb.builder.runtime.BeanHandler

      assertTrue(type == typeBinding);
     
      ParticleHandler particleHandler = typeBinding.getHandler();
      assertNotNull(particleHandler);
      assertTrue(particleHandler instanceof BeanHandler);
      BeanHandler beanInfoElementHandler = (BeanHandler) particleHandler;
      BeanAdapterFactory beanAdapterFactory = beanInfoElementHandler.getBeanAdapterFactory();
      assertTrue(beanAdapterFactory instanceof AbstractBeanAdapterFactory);
      AbstractBeanAdapterFactory abstractBeanAdapterFactory = (AbstractBeanAdapterFactory) beanAdapterFactory;
      assertEquals(Root.class.getName(), abstractBeanAdapterFactory.getBeanInfo().getName());
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.