Examples of smartClone()


Examples of org.jboss.serial.io.JBossObjectOutputStream.smartClone()

  }

  private VectorLayerRasterizingInfo cloneInfo(VectorLayerRasterizingInfo input) throws GeomajasException {
    try {
      JBossObjectOutputStream jbossSerializer = new JBossObjectOutputStream(null);
      Object obj = jbossSerializer.smartClone(input);
      return (VectorLayerRasterizingInfo) obj;
    } catch (IOException e) {
      // should not happen
      throw new GeomajasException(e, ExceptionCode.UNEXPECTED_PROBLEM);
    }
View Full Code Here

Examples of org.jboss.serial.io.JBossObjectOutputStream.smartClone()

                return (obj instanceof ChildObject);
            }
        });

        RootObject first = new RootObject();
        RootObject second = (RootObject)out.smartClone(first,safeToReuse);

        assertTrue(first!=second);
        assertEquals(first,second);
        assertEquals(first.child,second.child);
        assertTrue(first.child==second.child);
View Full Code Here

Examples of org.jboss.serial.io.JBossObjectOutputStream.smartClone()

  // do not change these testcases as they test the interface used by JBossRemoting
    private void doTestJBossDataContainerWithSmartClone2(Object dataObject) throws Exception
    {
      JBossObjectOutputStream objInput = new JBossObjectOutputStream(null);
      Object newObject = objInput.smartClone(dataObject);


      if (!(dataObject instanceof String) && !(dataObject instanceof String[]))
      {
        assertEquals(dataObject,newObject);
View Full Code Here

Examples of org.jboss.serial.io.JBossObjectOutputStream.smartClone()

                return (obj instanceof ChildObject);
            }
        });

        RootObject first = new RootObject();
        RootObject second = (RootObject)out.smartClone(first,safeToReuse);

        assertTrue(first!=second);
        assertEquals(first,second);
        assertEquals(first.child,second.child);
        assertTrue(first.child==second.child);
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.