Examples of copyFrom()


Examples of org.apache.camel.impl.DefaultExchange.copyFrom()

     * @param pattern exchange pattern to set.
     * @return created exchange.
     */
    protected Exchange createResourceExchange(Exchange source, ExchangePattern pattern) {
        DefaultExchange target = new DefaultExchange(source.getContext());
        target.copyFrom(source);
        target.setPattern(pattern);
        return target;
    }

    private static void prepareResult(Exchange exchange) {
View Full Code Here

Examples of org.apache.camel.impl.DefaultMessage.copyFrom()

        Message old = exchange.getIn();

        // create a new message container so we do not drag specialized message objects along
        Message msg = new DefaultMessage();
        msg.copyFrom(old);
        msg.setBody(newBody);
        exchange.setIn(msg);
    }

    @Override
View Full Code Here

Examples of org.apache.cayenne.modeler.pref.DBConnectionInfo.copyFrom()

        }

        // create transient object..
        DBConnectionInfo nodeInfo = new DBConnectionInfo();

        nodeInfo.copyFrom(((ProjectDataSource) node.getDataSource()).getDataSourceInfo());

        nodeInfo.setDbAdapter(null);
        if (node.getAdapter() instanceof ModelerDbAdapter) {
            nodeInfo.setDbAdapter(((ModelerDbAdapter) node.getAdapter())
                    .getAdapterClassName());
View Full Code Here

Examples of org.apache.click.control.Form.copyFrom()

        user.getAddress().getState().setCode("NSW");
       
        form = new Form();
        TextField codeField = new TextField("address.state.code");
        form.add(codeField);
        form.copyFrom(user, true);
        assertEquals("NSW", codeField.getValueObject());
       
        Map map = new HashMap();
        map.put("name", "malcolm");
        form = new Form();
View Full Code Here

Examples of org.apache.commons.vfs.FileObject.copyFrom()

 
  public File getResourceAsFile(String path) throws IOException {
    FileObject unpackedResource = _work.resolveFile(path);
    if (!unpackedResource.exists()) {
      FileObject sourceFile = _source.resolveFile(path);
      sourceFile.copyFrom(unpackedResource, new FileSelector() {

        public boolean includeFile(FileSelectInfo arg0) throws Exception {
          return true;
        }
View Full Code Here

Examples of org.apache.commons.vfs.provider.local.LocalFile.copyFrom()

      String tmpPath = sb.toString().replace('\\', '/');
     
      LocalFile localCopy = null;
      try {
        localCopy = (LocalFile) VFS.getManager().resolveFile(tmpPath);
        localCopy.copyFrom(fo, new FileTypeSelector(FileType.FILE));
        localCopy.close();
       
        thePackage = getPackageFromLocalFile(localCopy);
      } catch (FileSystemException exc) {
        exc.printStackTrace();
View Full Code Here

Examples of org.apache.commons.vfs.provider.webdav.WebdavFileObject.copyFrom()

                    + localFilePath);

            WebdavFileObject remoteFile = (WebdavFileObject) vfsManager
                    .resolveFile(remoteFilePath.replace("dav://", "webdav://"));

            remoteFile.copyFrom(localFile, new AllFileSelector());
        } catch (FileSystemException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }
View Full Code Here

Examples of org.apache.drill.exec.ref.UnbackedRecord.copyFrom()

  protected void doWork() {
    for(RecordIterator ri : incoming){
      RecordPointer rp = ri.getRecordPointer();
      while(ri.next() != NextOutcome.NONE_LEFT){
        UnbackedRecord r = new UnbackedRecord();
        r.copyFrom(rp);
        records.add(r);
      }
    }
    this.iterator = records.iterator();
  }
View Full Code Here

Examples of org.apache.hadoop.raid.protocol.PolicyInfo.copyFrom()

          }
        }  // done with all properties of this policy
        PolicyInfo pinfo;
        if (parent != null) {
          pinfo = new PolicyInfo(policyName, conf);
          pinfo.copyFrom(parent);
          pinfo.copyFrom(curr);
        } else {
          pinfo = curr;
        }
        if (pinfo.getSrcPath() != null || pinfo.getFileListPath() != null) {
View Full Code Here

Examples of org.apache.isis.core.metamodel.adapter.oid.Oid.copyFrom()

        oidAdapterMap.remove(previousOid);

        // we can't replace the Oid on the looked-up adapter, so instead we
        // just make it the same value as the Oid we were originally passed in
        final Oid lookedUpAdapterOid = lookedUpAdapter.getOid();
        lookedUpAdapterOid.copyFrom(oid);

        // finally re-map the adapter
        oidAdapterMap.add(lookedUpAdapterOid, lookedUpAdapter);
    }
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.