Examples of clone()


Examples of org.impalaframework.util.serialize.SerializationHelper.clone()

  Object clone(Object o) {
    final BundleDelegatingClassLoader classLoader = BundleDelegatingClassLoader.createBundleClassLoaderFor(bundleContext.getBundle());
    final SerializationStreamFactory streamFactory = newStreamFactory(classLoader);
    SerializationHelper helper = new SerializationHelper(streamFactory);
    final Object clone = helper.clone((Serializable) o);
    return clone;
  }

  SerializationStreamFactory newStreamFactory(ClassLoader classLoader) {
    return new ClassLoaderAwareSerializationStreamFactory(classLoader);
View Full Code Here

Examples of org.infinispan.config.Configuration.clone()

      registerCacheManager(cacheManager2);

      Configuration configuration = getDefaultClusteredConfig(Configuration.CacheMode.REPL_SYNC, true);
      configuration.setExposeJmxStatistics(true);
      cacheManager1.defineConfiguration("test", configuration);
      cacheManager2.defineConfiguration("test", configuration.clone());
      cache1 = cacheManager1.getCache("test");
      cache2 = cacheManager2.getCache("test");
      txInterceptor = getCacheObjectName(JMX_DOMAIN, "test(repl_sync)", "Transactions");
      txInterceptor2 = getCacheObjectName(JMX_DOMAIN, "test(repl_sync)", "Transactions", "SecondDefaultCacheManager");
View Full Code Here

Examples of org.infinispan.config.GlobalConfiguration.clone()

      globalConfiguration.setAllowDuplicateDomains(true);
      globalConfiguration.setMBeanServerLookup(PerThreadMBeanServerLookup.class.getName());
      globalConfiguration.setJmxDomain("TxInterceptorMBeanTest");
      CacheManager cacheManager1 = TestCacheManagerFactory.createCacheManager(globalConfiguration);
      registerCacheManager(cacheManager1);
      CacheManager cacheManager2 = TestCacheManagerFactory.createCacheManager(globalConfiguration.clone());
      registerCacheManager(cacheManager2);

      Configuration configuration = getDefaultClusteredConfig(Configuration.CacheMode.REPL_SYNC);
      configuration.setExposeJmxStatistics(true);
      configuration.setTransactionManagerLookupClass(DummyTransactionManagerLookup.class.getName());
View Full Code Here

Examples of org.jacorb.notification.interfaces.Message.clone()

    public void testDeliveryToDisabledConsumerEnqueues() throws Exception
    {
        MockControl controlMessage = MockControl.createStrictControl(Message.class);
        Message mockMessage = (Message) controlMessage.getMock();

        mockMessage.clone();
        controlMessage.setReturnValue(mockMessage);

        controlMessage.replay();

        controlTaskExecutor_.replay();
View Full Code Here

Examples of org.jallinone.items.java.ItemToPrintVO.clone()

          controlQty.getValue()!=null) {
        ItemToPrintVO vo = (ItemToPrintVO)itemPanel.getVOModel().getValueObject();
        Object[][] cells = variantsPanel.getCells();
        if (cells==null) {
          try {
            vo = (ItemToPrintVO) vo.clone();
          }
          catch (CloneNotSupportedException ex) {
          }
          vo.setVariantTypeItm06(ApplicationConsts.JOLLY);
          vo.setVariantTypeItm07(ApplicationConsts.JOLLY);
View Full Code Here

Examples of org.jallinone.variants.java.VariantsMatrixColumnVO.clone()

         else {
           col2VO = (VariantsMatrixColumnVO)colVO.clone();
           setVariantDescription(col2VO,vo,tmpSameVarType[depth]);
         }
         setVariantTypeAndCode(managedVariants,col2VO,vo,depth);
         createCombinations(managedVariants, tmp, tmpSameVarType, cols, depth + 1, (VariantsMatrixColumnVO)col2VO.clone());
       }
       else {
         if (colVO == null) {
           col2VO = new VariantsMatrixColumnVO();
           setVariantDescription(col2VO,vo,tmpSameVarType[depth]);
View Full Code Here

Examples of org.jamesii.core.math.parsetree.control.CaseNode.clone()

        new ValueNode<>(3), new ValueNode<>(3))));
    CaseNode cn = new CaseNode(caseStmt, caseTerms);

    Node n2 = null;
    try {
      n2 = (Node) cn.clone();
    } catch (CloneNotSupportedException e) {
      fail(e.getMessage());
    }
    assertTrue(cn != n2);
View Full Code Here

Examples of org.jamesii.core.math.parsetree.control.IfThenElseNode.clone()

    Node els = new ValueNode<>(7);
    IfThenElseNode ifN = new IfThenElseNode(cond, then, els);

    Node n2 = null;
    try {
      n2 = (Node) ifN.clone();
    } catch (CloneNotSupportedException e) {
      fail(e.getMessage());
    }
    assertTrue(ifN != n2);
View Full Code Here

Examples of org.jamesii.model.carules.CACell.clone()

    for (int element : size) {
      cellNumber = cellNumber * element;
    }

    for (int i = 0; i < cellNumber; i++) {
      result.add(currentCell.clone());
    }

    int[] temp;
    currentCell = null;
    int currentCellPosition = 0;
View Full Code Here

Examples of org.jboss.as.controller.client.Operation.clone()

            Operation localOperation = operation;
            if (targets.size() > 0) {
                // clone things so our local activity doesn't affect the op
                // we send to the other hosts
                localOperation = localOperation.clone(localOperation.getOperation().clone());
            }
            pushToHost(localOperation, transaction, localHostName, futures);
            processHostFuture(localHostName, futures.remove(localHostName), hostResults);
            ModelNode hostResult = hostResults.get(localHostName);
            if (!transaction.isRollbackOnly()) {
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.