Package org.tmatesoft.hg.internal.remote

Examples of org.tmatesoft.hg.internal.remote.RemoteConnectorDescriptor


  private final SessionContext sessionContext;
  private Set<String> remoteCapabilities;
  private Connector remote;
 
  HgRemoteRepository(SessionContext ctx, RemoteDescriptor rd) throws HgBadArgumentException {
    RemoteConnectorDescriptor rcd = Adaptable.Factory.getAdapter(rd, RemoteConnectorDescriptor.class, null);
    if (rcd == null) {
      throw new IllegalArgumentException(String.format("Present implementation supports remote connections via %s only", Connector.class.getName()));
    }
    sessionContext = ctx;
    debug = new PropertyMarshal(ctx).getBoolean("hg4j.remote.debug", false);
    remote = rcd.createConnector();
    remote.init(rd /*sic! pass original*/, ctx, null);
  }
View Full Code Here

TOP

Related Classes of org.tmatesoft.hg.internal.remote.RemoteConnectorDescriptor

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.