public class ModeShapeRepositoryFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<org.modeshape.jcr.JcrRepository>
Constructor and Description |
---|
ModeShapeRepositoryFactoryBean() |
Modifier and Type | Method and Description |
---|---|
void |
buildRepository()
Generate a JCR repository from the given configuration
|
org.modeshape.jcr.JcrRepository |
getObject() |
Class<?> |
getObjectType() |
boolean |
isSingleton() |
void |
setRepositoryConfiguration(org.springframework.core.io.Resource repositoryConfiguration)
Set the configuration to use for creating the repository
|
void |
stopRepository()
Attempts to undeploy the repository and shutdown the ModeShape engine on
context destroy.
|
public ModeShapeRepositoryFactoryBean()
@PostConstruct public void buildRepository()
@PreDestroy public void stopRepository() throws InterruptedException
InterruptedException
- if interrupted exception occurredpublic org.modeshape.jcr.JcrRepository getObject()
getObject
in interface org.springframework.beans.factory.FactoryBean<org.modeshape.jcr.JcrRepository>
public Class<?> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean<org.modeshape.jcr.JcrRepository>
public boolean isSingleton()
isSingleton
in interface org.springframework.beans.factory.FactoryBean<org.modeshape.jcr.JcrRepository>
public void setRepositoryConfiguration(org.springframework.core.io.Resource repositoryConfiguration)
repositoryConfiguration
- the repository configurationCopyright © 2013–2015 DuraSpace, Inc.. All rights reserved.