|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.dna.connector.svn.SVNRepositorySource
public class SVNRepositorySource
A repository source that uses a SVN repository instance to manage the content. This source is capable of using an existing
SVNRepository
instance or creating a new instance. This process is controlled entirely by the JavaBean properties of
the SVNRepositorySource instance. Like other RepositorySource
classes, instances of SVNRepositorySource can be placed
into JNDI and do support the creation of JNDI referenceable
objects and resolution of references into
SVNRepositorySource.
Field Summary | |
---|---|
static int |
DEFAULT_CACHE_TIME_TO_LIVE_IN_SECONDS
|
static int |
DEFAULT_RETRY_LIMIT
The default limit is 0 for retrying connection calls to the underlying source. |
static boolean |
DEFAULT_SUPPORTS_UPDATES
This source supports udpates by default, but each instance may be configured to be
read-only or updateable . |
Constructor Summary | |
---|---|
SVNRepositorySource()
Create a repository source instance. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
RepositorySourceCapabilities |
getCapabilities()
Get the capabilities for this source. |
RepositoryConnection |
getConnection()
Get a connection from this source. |
CachePolicy |
getDefaultCachePolicy()
Get the default cache policy for this source, or null if the global default cache policy should be used |
String |
getName()
Get the name for this repository source. |
Object |
getObjectInstance(Object obj,
Name name,
Context nameCtx,
Hashtable<?,?> environment)
|
Reference |
getReference()
|
RepositoryContext |
getRepositoryContext()
|
int |
getRetryLimit()
Get the maximum number of retries that may be performed on a given operation when using connections created by this source. |
boolean |
getSupportsUpdates()
Get whether this source supports updates. |
String |
getSVNPassword()
|
String |
getSVNURL()
|
String |
getSVNUsername()
|
void |
initialize(RepositoryContext context)
Initialize this source to use the supplied RepositoryContext , from which this source can obtain
connections to other sources as well as
execution contexts . |
void |
setDefaultCachePolicy(CachePolicy defaultCachePolicy)
|
void |
setName(String name)
Set the name of this source |
void |
setRetryLimit(int limit)
Set the maximum number of retries that may be performed on a given operation when using connections created by this source. |
void |
setSupportsUpdates(boolean supportsUpdates)
Set whether this source supports updates. |
void |
setSVNPassword(String password)
|
void |
setSVNURL(String url)
Set the url for the subversion repository. |
void |
setSVNUsername(String username)
|
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_RETRY_LIMIT
connection
calls to the underlying source.
public static final boolean DEFAULT_SUPPORTS_UPDATES
be
read-only or updateable
.
public static final int DEFAULT_CACHE_TIME_TO_LIVE_IN_SECONDS
Constructor Detail |
---|
public SVNRepositorySource()
Method Detail |
---|
public RepositorySourceCapabilities getCapabilities()
getCapabilities
in interface RepositorySource
RepositorySource.getCapabilities()
public void initialize(RepositoryContext context) throws RepositorySourceException
RepositoryContext
, from which this source can obtain
connections
to other sources
as well as
execution contexts
.
initialize
in interface RepositorySource
RepositorySourceException
RepositorySource.initialize(org.jboss.dna.graph.connector.RepositoryContext)
public RepositoryContext getRepositoryContext()
public String getName()
getName
in interface RepositorySource
public int getRetryLimit()
connections
created by this source. This value does not constitute a minimum number of retries; in fact, the connection
user is not required to retry any operations.
getRetryLimit
in interface RepositorySource
RepositorySource.getRetryLimit()
public void setRetryLimit(int limit)
connections
created by this source. This value does not constitute a minimum number of retries; in fact, the connection
user is not required to retry any operations.
setRetryLimit
in interface RepositorySource
limit
- the maximum number of allowable retries, or 0 if the source has no limitRepositorySource.setRetryLimit(int)
public void setName(String name)
name
- the name for this sourcepublic CachePolicy getDefaultCachePolicy()
public void setDefaultCachePolicy(CachePolicy defaultCachePolicy)
defaultCachePolicy
- Sets defaultCachePolicy to the specified value.public String getSVNURL()
public void setSVNURL(String url)
url
- - the url location.
IllegalArgumentException
- If svn url is null or emptypublic String getSVNUsername()
public void setSVNUsername(String username)
username
- public String getSVNPassword()
public void setSVNPassword(String password)
password
- public boolean getSupportsUpdates()
public void setSupportsUpdates(boolean supportsUpdates)
supportsUpdates
- true if this source supports updating content, or false if this source only supports reading
content.public RepositoryConnection getConnection() throws RepositorySourceException
getConnection
in interface RepositorySource
RepositorySourceException
- if there is a problem obtaining a connectionRepositorySource.getConnection()
public boolean equals(Object obj)
equals
in class Object
public Reference getReference()
getReference
in interface Referenceable
Referenceable.getReference()
public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?,?> environment) throws Exception
getObjectInstance
in interface ObjectFactory
Exception
ObjectFactory.getObjectInstance(java.lang.Object, javax.naming.Name, javax.naming.Context,
java.util.Hashtable)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |