public class RepositoryDelegateFactory extends Object
RepositoryDelegate based upon the url
provided. The url must be prefixed by .| Modifier and Type | Field and Description |
|---|---|
protected static int |
PROTOCOL_JNDI |
protected static int |
PROTOCOL_UNKNOWN |
| Modifier | Constructor and Description |
|---|---|
protected |
RepositoryDelegateFactory() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptUrl(String url)
Determine if this factory accepts the supplied URL.
|
protected RepositoryDelegate |
create(int protocol,
String url,
Properties info,
LocalJcrDriver.JcrContextFactory contextFactory) |
RepositoryDelegate |
createRepositoryDelegate(String url,
Properties info,
LocalJcrDriver.JcrContextFactory contextFactory)
Create a RepositoryDelegate instance, given the connection information.
|
protected int |
determineProtocol(String url) |
protected static final int PROTOCOL_UNKNOWN
protected static final int PROTOCOL_JNDI
public RepositoryDelegate createRepositoryDelegate(String url, Properties info, LocalJcrDriver.JcrContextFactory contextFactory) throws SQLException
url - the JDBC URL; may be nullinfo - the connection propertiescontextFactory - the factory for a JCR context; may not be nullSQLException - if the URL is unknownpublic boolean acceptUrl(String url)
url - the connection URLprotected int determineProtocol(String url)
protected RepositoryDelegate create(int protocol, String url, Properties info, LocalJcrDriver.JcrContextFactory contextFactory)
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.