Package nexj.core.meta

Examples of nexj.core.meta.ComponentPropertyInitializer


                           loader.getHelper().getClassObject(SysUtil.PACKAGE + ".core.persistence.file.XAFileStorageConnectionFactory"),
                           Component.SINGLETON);

                        cf.addPrimitivePropertyInitializer("fragment", fragment);

                        final ComponentPropertyInitializer initializer = cf.addComponentPropertyInitializer("transactionManager", null);

                        loader.addComponentFixup(new XMLMetadataHelper.ContextFixup(loader.getHelper())
                        {
                           public void fixup()
                           {
                              initializer.setInstanceComponent(loader.getMetadata().getComponent("System.TransactionManager"));
                           }
                        });
                     }

                     cf.setMetadata(loader.getMetadata());
View Full Code Here


                     }
                  });
               }
               else
               {
                  initializer = new ComponentPropertyInitializer(sName, type, method, component);
                  loadComponentProperty(propertyElement, initializer, type);
               }
            }
            else
            {
View Full Code Here

         loader.getMetadata().addComponent(component);
         loader.addSingletonFixup(component);
         mq.setSender(component);
         component.addPrimitivePropertyInitializer("channel", channel);

         final ComponentPropertyInitializer initializer = component.addComponentPropertyInitializer("transactionManager", null);

         loader.addComponentFixup(new XMLMetadataHelper.ContextFixup(loader.getHelper())
         {
            public void fixup()
            {
               initializer.setInstanceComponent(loader.getMetadata().getComponent("System.TransactionManager"));
            }
         });
      }

      if (mq.isReceivable())
      {
         Component component = new Component("JMSReceiver." + channel.getName(), channel.getType().getReceiver(), Component.SINGLETON);

         loader.addSingletonFixup(component);
         mq.setReceiver(component);
         component.setMetadata(loader.getMetadata());
         component.addPrimitivePropertyInitializer("channel", channel);

         final PrimitivePropertyInitializer initializer = component.addPrimitivePropertyInitializer("contextComponent", null);

         loader.addComponentFixup(new XMLMetadataHelper.ContextFixup(loader.getHelper())
         {
            public void fixup()
            {
               initializer.setValue(loader.getMetadata().getComponent("System.InvocationContext"));
            }
         });
      }
   }
View Full Code Here

TOP

Related Classes of nexj.core.meta.ComponentPropertyInitializer

Copyright © 2018 www.massapicom. 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.