org.jboss.dna.graph.connector
Interface RepositoryConnectionFactory
- All Known Implementing Classes:
- RepositoryLibrary
@ThreadSafe
public interface RepositoryConnectionFactory
An interface for a factory of RepositoryConnections using the names of the RepositorySource from which the
connections are to be obtained. This interface need not be implemented by a RepositorySource, as implementations are
usually provided by the system.
createConnection
RepositoryConnection createConnection(String sourceName)
throws RepositorySourceException
- Create a
RepositoryConnection using the given RepositorySource name.
- Parameters:
sourceName - the name of the source from which a connection should be obtained
- Returns:
- the source, or null if no such source could be found (or created)
- Throws:
RepositorySourceException - if there was an error obtaining the new connection
Copyright © 2008-2010 JBoss, a division of Red Hat. All Rights Reserved.