Registers a RepositoryConnectionListener that will receive notifications of operations that are
performed on anyinvalid input: '<' connections that are created by this repository.
Registers a RepositoryConnectionListener that will receive notifications of operations that are
performed on anyinvalid input: '<' connections that are created by this repository.
Opens a connection to this repository that can be used for querying and updating the contents of the repository.
Created connections need to be closed to make sure that any resources they keep hold of are released. The best
way to do this is to use a try-finally-block as follows:
Connection con = repository.getConnection();
try {
// perform operations on the connection
} finally {
con.close();
}
Note that RepositoryConnection is not guaranteed to be thread-safe! The recommended pattern for
repository access in a multithreaded application is to share the Repository object between threads, but have each
thread create and use its own RepositoryConnections.