org.modeshape.jcr
Class JcrRepository.DelegatingConnectionFactory
java.lang.Object
org.modeshape.jcr.JcrRepository.DelegatingConnectionFactory
- All Implemented Interfaces:
- RepositoryConnectionFactory
- Enclosing class:
- JcrRepository
protected class JcrRepository.DelegatingConnectionFactory
- extends Object
- implements RepositoryConnectionFactory
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JcrRepository.DelegatingConnectionFactory
protected JcrRepository.DelegatingConnectionFactory(RepositoryConnectionFactory delegate,
RepositorySource source)
createConnection
public RepositoryConnection createConnection(String sourceName)
throws RepositorySourceException
- Create a
RepositoryConnection
using the given RepositorySource
name.
- Specified by:
createConnection
in interface RepositoryConnectionFactory
- 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- See Also:
RepositoryConnectionFactory.createConnection(java.lang.String)
Copyright © 2008-2010 JBoss, a division of Red Hat. All Rights Reserved.