org.springframework.extensions.jcr.jackrabbit
Class RepositoryFactoryBean
java.lang.Object
org.springframework.extensions.jcr.RepositoryFactoryBean
org.springframework.extensions.jcr.jackrabbit.RepositoryFactoryBean
- All Implemented Interfaces:
- org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
- TransientRepositoryFactoryBean
public class RepositoryFactoryBean
- extends RepositoryFactoryBean
FactoryBean for creating a JackRabbit (JCR-170) repository through Spring configuration files. Use this
factory bean when you have to manually configure the repository; for retrieving the repository from JNDI
use the JndiObjectFactoryBean org.springframework.jndi.JndiObjectFactoryBean
- Author:
- Costin Leau, Sergio Bossa, Salvatore Incandela
- See Also:
org.springframework.jndi.JndiObjectFactoryBean
|
Method Summary |
protected javax.jcr.Repository |
createRepository()
Subclasses have to implement this method to allow specific JSR-170 implementation repository creation. |
void |
destroy()
Shutdown method. |
org.springframework.core.io.Resource |
getHomeDir()
|
org.apache.jackrabbit.core.config.RepositoryConfig |
getRepositoryConfig()
|
protected void |
resolveConfigurationResource()
Subclasses have to implement this method to allow specific JSR-170 implementation repository
configuration. |
void |
setHomeDir(org.springframework.core.io.Resource defaultRepDir)
|
void |
setRepositoryConfig(org.apache.jackrabbit.core.config.RepositoryConfig repositoryConfig)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RepositoryFactoryBean
public RepositoryFactoryBean()
createRepository
protected javax.jcr.Repository createRepository()
throws java.lang.Exception
- Description copied from class:
RepositoryFactoryBean
- Subclasses have to implement this method to allow specific JSR-170 implementation repository creation.
- Specified by:
createRepository in class RepositoryFactoryBean
- Returns:
-
- Throws:
java.lang.Exception- See Also:
RepositoryFactoryBean.createRepository()
resolveConfigurationResource
protected void resolveConfigurationResource()
throws java.lang.Exception
- Description copied from class:
RepositoryFactoryBean
- Subclasses have to implement this method to allow specific JSR-170 implementation repository
configuration.
- Specified by:
resolveConfigurationResource in class RepositoryFactoryBean
- Throws:
java.lang.Exception- See Also:
RepositoryFactoryBean.resolveConfigurationResource()
destroy
public void destroy()
throws java.lang.Exception
- Shutdown method.
- Specified by:
destroy in interface org.springframework.beans.factory.DisposableBean- Overrides:
destroy in class RepositoryFactoryBean
- Throws:
java.lang.Exception- See Also:
DisposableBean.destroy()
getHomeDir
public org.springframework.core.io.Resource getHomeDir()
- Returns:
- Returns the defaultRepDir.
setHomeDir
public void setHomeDir(org.springframework.core.io.Resource defaultRepDir)
- Parameters:
defaultRepDir - The defaultRepDir to set.
getRepositoryConfig
public org.apache.jackrabbit.core.config.RepositoryConfig getRepositoryConfig()
- Returns:
- Returns the repositryConfig.
setRepositoryConfig
public void setRepositoryConfig(org.apache.jackrabbit.core.config.RepositoryConfig repositoryConfig)
- Parameters:
repositoryConfig - The repositryConfig to set.
Copyright © 2009. All Rights Reserved.