Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.modeshape.graph.connector
Interface RepositoryConnectionFactory

All Known Implementing Classes:
  JcrRepository.DelegatingConnectionFactory, RepositoryLibrary

    @ThreadSafe
    public interface RepositoryConnectionFactory

An interface for a factory of `RepositoryConnection`s 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.

Method Summary
`RepositoryConnection` | `createConnection(String sourceName)` Create a `RepositoryConnection` using the given `RepositorySource` name.

Method Detail

### 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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2008-2012 JBoss, a division of Red Hat. All Rights Reserved.