org.springframework.extensions.jcr.jackrabbit
Class JackrabbitSessionFactory
java.lang.Object
org.springframework.extensions.jcr.JcrSessionFactory
org.springframework.extensions.jcr.jackrabbit.JackrabbitSessionFactory
- All Implemented Interfaces:
- org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, SessionFactory
public class JackrabbitSessionFactory
- extends JcrSessionFactory
Jackrabbit specific JcrSessionFactory which allows registration of node types in Content node types format.
- Author:
- Costin Leau, Sergio Bossa, Salvatore Incandela
|
Method Summary |
protected void |
registerNodeTypes()
Hook for registering node types on the underlying repository. |
void |
setContentType(java.lang.String contentType)
Indicate the node definition content type (by default, JackrabbitNodeTypeManager#TEXT_XML). |
void |
setNodeDefinitions(org.springframework.core.io.Resource[] nodeDefinitions)
|
| Methods inherited from class org.springframework.extensions.jcr.JcrSessionFactory |
addListeners, afterPropertiesSet, destroy, equals, getCredentials, getEventListeners, getNamespaces, getRepository, getSession, getSessionHolder, getSessionHolderProvider, getSessionHolderProviderManager, getWorkspaceName, hashCode, isForceNamespacesRegistration, isKeepNewNamespaces, isSkipExistingNamespaces, registerNamespaces, setCredentials, setEventListeners, setForceNamespacesRegistration, setKeepNewNamespaces, setNamespaces, setRepository, setSessionHolderProvider, setSessionHolderProviderManager, setSkipExistingNamespaces, setWorkspaceName, toString, unregisterNamespaces, unregisterNodeTypes |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
JackrabbitSessionFactory
public JackrabbitSessionFactory()
registerNodeTypes
protected void registerNodeTypes()
throws java.lang.Exception
- Description copied from class:
JcrSessionFactory
- Hook for registering node types on the underlying repository. Since this process is not covered by the
spec, each implementation requires its own subclass. By default, this method doesn't do anything.
- Overrides:
registerNodeTypes in class JcrSessionFactory
- Throws:
java.lang.Exception
setNodeDefinitions
public void setNodeDefinitions(org.springframework.core.io.Resource[] nodeDefinitions)
- Parameters:
nodeDefinitions - The nodeDefinitions to set.
setContentType
public void setContentType(java.lang.String contentType)
- Indicate the node definition content type (by default, JackrabbitNodeTypeManager#TEXT_XML).
- Parameters:
contentType - The contentType to set.- See Also:
JackrabbitNodeTypeManager.TEXT_X_JCR_CND,
JackrabbitNodeTypeManager.TEXT_XML
Copyright © 2009. All Rights Reserved.