Package nexj.core.runtime

Examples of nexj.core.runtime.Instance.findValue()


      // login the message sender
      context.login(new SimplePrincipal((String)msg.getValue("user")));

      // check that message has not been recovered by the dispatcher
      if (!((Boolean)msg.findValue("isProcessing", Boolean.TRUE)).booleanValue())
      {
         throw new InvalidDispatcherException(sDispatcherId);
      }

      // invoke fail method
View Full Code Here


         {
            return; // message doesn't exist, can't blacklist it.
         }

         // check that message has not been recovered by the dispatcher
         if (!((Boolean)msg.findValue("isProcessing", Boolean.TRUE)).booleanValue())
         {
            throw new InvalidDispatcherException(sDispatcherId);
         }

         context.setSecure(false);
View Full Code Here

      out = new ObjectOutput();
      m_formatter.format(root, m_contactMsg, out);
      result = (Instance)out.getObject();
      assertEquals("Contact", result.getMetaclass().getName());
      assertEquals("Simon", result.getValue("firstName"));
      assertNull(result.findValue("lastName"));
      assertNull(result.findValue("middleName"));
      assertEquals(Instance.NEW, result.getState());
      rollback();

View Full Code Here

      m_formatter.format(root, m_contactMsg, out);
      result = (Instance)out.getObject();
      assertEquals("Contact", result.getMetaclass().getName());
      assertEquals("Simon", result.getValue("firstName"));
      assertNull(result.findValue("lastName"));
      assertNull(result.findValue("middleName"));
      assertEquals(Instance.NEW, result.getState());
      rollback();


      // Format the sub-message (no polymorphism)
View Full Code Here

      assertEquals(Instance.NEW, result.getState());
      result = (Instance)result.getValue("contact");

      assertEquals("Contact", result.getMetaclass().getName());
      assertEquals("Simon", result.getValue("firstName"));
      assertNull(result.findValue("lastName"));
      assertNull(result.findValue("middleName"));
      assertEquals(Instance.NEW, result.getState());
      rollback();

View Full Code Here

      result = (Instance)result.getValue("contact");

      assertEquals("Contact", result.getMetaclass().getName());
      assertEquals("Simon", result.getValue("firstName"));
      assertNull(result.findValue("lastName"));
      assertNull(result.findValue("middleName"));
      assertEquals(Instance.NEW, result.getState());
      rollback();


      // Format the reference with sub-message (polymorphic!)
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.