public abstract class AbstractRepoTransportFactory extends Object implements RepoTransportFactory
| Constructor and Description |
|---|
AbstractRepoTransportFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract RepoTransport |
_createRepoTransport() |
RepoTransport |
createRepoTransport(URL remoteRoot,
UUID clientRepositoryId)
Create a
RepoTransport instance. |
int |
getPriority()
Gets the priority of this factory.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDescription, getName, isSupportedpublic AbstractRepoTransportFactory()
public int getPriority()
RepoTransportFactoryFactories are sorted primarily by this priority (descending). Thus, the greater the priority as a number the more likely it will be used.
Or in other words: The factory with the highest priority is chosen.
The default implementation in AbstractRepoTransportFactory returns 0. Thus, if you implement your
own factory and register it for a URL type that is already handled by another factory,
you must return a number greater than the other factory's priority (i.e. usually > 0).
getPriority in interface RepoTransportFactorypublic RepoTransport createRepoTransport(URL remoteRoot, UUID clientRepositoryId)
RepoTransportFactoryRepoTransport instance.createRepoTransport in interface RepoTransportFactoryremoteRoot - the remote-root. Must not be null.clientRepositoryId - the client-side repository's ID (i.e. the ID of the repo on the other side).
May be null, if there is no repo (yet) on the other side. Note, that certain methods
are not usable, if this is null.RepoTransport instance. Never null.protected abstract RepoTransport _createRepoTransport()
Copyright © 2013–2017. All rights reserved.