Package nexj.core.meta

Examples of nexj.core.meta.PrimitivePropertyInitializer


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

         final PrimitivePropertyInitializer dispatcherInitializer = component.addPrimitivePropertyInitializer("dispatcherComponent", null);

         loader.addComponentFixup(new XMLMetadataHelper.ContextFixup(loader.getHelper())
         {
            public void fixup()
            {
               // Use findComponent, as "System.ObjectQueueDispatcher" does not exist if core repository is not used.
               // The component instance can't be recovered at this point, because the metadata may not be sufficiently loaded
               // for the initializer to succeed.
               dispatcherInitializer.setValue(loader.getMetadata().findComponent("System.ObjectQueueDispatcher"));
            }
         });
      }
   }
View Full Code Here


         loader.addSingletonFixup(component);
         udp.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

                     }
                  });
               }
               else
               {
                  initializer = new PrimitivePropertyInitializer(sName, type, method, component);
                  loadPrimitiveProperty(propertyElement, initializer, parser, type);
               }
            }

            component.addPropertyInitializer(initializer);
View Full Code Here

         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

         loader.addSingletonFixup(component);
         fchan.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.PrimitivePropertyInitializer

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.