Class RepositoryService

java.lang.Object
sonia.scm.repository.api.RepositoryService
All Implemented Interfaces:
Closeable, AutoCloseable

public final class RepositoryService extends Object implements Closeable
From the RepositoryService it is possible to access all commands for a single Repository. The RepositoryService is only access able from the RepositoryServiceFactory.

Note: Not every RepositoryService supports every command. If the command is not supported the method will trow a CommandNotSupportedException. It is possible to check if the command is supported by the RepositoryService with the isSupported(Command) method.

Warning: You should always close the connection to the repository after work is finished. For closing the connection to the repository use the close() method.
Since:
1.17