Class RepositoryConfigurationParser
- java.lang.Object
-
- org.apache.jackrabbit.core.config.ConfigurationParser
-
- org.apache.jackrabbit.core.config.RepositoryConfigurationParser
-
public class RepositoryConfigurationParser extends ConfigurationParser
Configuration parser. This class is used to parse the repository and workspace configuration files.The following code sample outlines the usage of this class:
Properties variables = ...; // parser variables RepositoryConfigurationParser parser = new RepositoryConfigurationParser(variables); RepositoryConfig rc = parser.parseRepositoryConfig(...); WorkspaceConfig wc = parser.parseWorkspaceConfig(...);Note that the configuration objects returned by this parser are not initialized. The caller needs to initialize the configuration objects before using them.
-
-
Field Summary
Fields Modifier and Type Field Description static StringACCESS_MANAGER_ELEMENTName of the access manager configuration element.static StringAPP_NAME_ATTRIBUTEName of the application name configuration attribute.static StringARCHIVE_DATASTORE_ATTRIBUTEName of the archive DataStore class attribute.protected BeanFactorybeanFactorystatic StringCLUSTER_ELEMENTName of the cluster configuration element.static StringCLUSTERED_ATTRIBUTEName of the clustered configuration attribute.static StringCONFIG_ROOT_PATH_ATTRIBUTEName of the config root path configuration attribute.protected BeanConfigVisitorconfigVisitorprotected ConnectionFactoryconnectionFactoryThe repositoriesConnectionFactory.static StringDATA_STORE_ELEMENTName of the data store configuration element.static StringDATASOURCE_ELEMENTName of the data source configuration element.static StringDATASOURCES_ELEMENTName of the data source configuration element.static StringDEFAULT_QUERY_HANDLERName of the default search index implementation class.static StringDEFAULT_STOP_DELAYDefault stop delay, in milliseconds or -1 if the default is derived from the sync delay.static StringDEFAULT_SYNC_DELAYDefault synchronization delay, in milliseconds.static StringDEFAULT_WORKSPACE_ATTRIBUTEName of the default workspace configuration attribute.static StringFILE_SYSTEM_ELEMENTName of the file system configuration element.static StringID_ATTRIBUTEName of the id configuration attribute.static StringISM_LOCKING_ELEMENTName of the ism locking configuration element.static StringJOURNAL_ELEMENTName of the journal configuration element.static StringLOGIN_MODULE_ELEMENTName of the login module configuration element.static StringMAX_IDLE_TIME_ATTRIBUTEName of the maximum idle time configuration attribute.static StringPERSISTENCE_MANAGER_ELEMENTName of the persistence manager configuration element.static StringPRIMARY_DATASTORE_ATTRIBUTEName of the primary DataStore class attribute.static StringREPOSITORY_CONF_VARIABLEName of the repository configuration file parser variable.static StringREPOSITORY_HOME_VARIABLEName of the repository home directory parser variable.static StringREPOSITORY_LOCK_MECHANISM_ELEMENTName of the repository lock mechanism configuration element.static StringROOT_PATH_ATTRIBUTEName of the root path configuration attribute.static StringSEARCH_INDEX_ELEMENTName of the search index configuration element.static StringSECURITY_ELEMENTName of the security configuration element.static StringSECURITY_MANAGER_ELEMENTName of the security manager configuration element.static StringSTOP_DELAY_ATTRIBUTEName of the stopDelay configuration attribute.static StringSYNC_DELAY_ATTRIBUTEName of the syncDelay configuration attribute.static StringVERSIONING_ELEMENTName of the versioning configuration element.static StringWORKSPACE_ELEMENTName of the workspace configuration element.static StringWORKSPACE_HOME_VARIABLEName of the workspace home directory parser variable.static StringWORKSPACE_NAME_VARIABLEName of the repository name parser variable.static StringWORKSPACES_ELEMENTName of the general workspace configuration element.static StringWSP_NAME_ATTRIBUTEName of the workspace containing security data.-
Fields inherited from class org.apache.jackrabbit.core.config.ConfigurationParser
CLASS_ATTRIBUTE, NAME_ATTRIBUTE, PARAM_ELEMENT, VALUE_ATTRIBUTE
-
-
Constructor Summary
Constructors Modifier Constructor Description RepositoryConfigurationParser(Properties variables)Creates a new configuration parser with the given parser variables.protectedRepositoryConfigurationParser(Properties variables, ConnectionFactory connectionFactory)Creates a new configuration parser with the given parser variables and connection factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected RepositoryConfigurationParsercreateSubParser(Properties variables)Creates a new instance of a configuration parser but with overlayed variables and the same connection factory as this parser.protected DataStoreFactorygetDataStoreFactory(Element parent, String directory)Parses data store configuration.protected FileSystemFactorygetFileSystemFactory(Element parent, String name)Creates and returns a factory object that createsFileSysteminstances based on the bean configuration at the named element.protected ISMLockingFactorygetISMLockingFactory(Element parent)Returns an ISM locking factory that createsISMLockinginstances based on the given configuration.protected JournalFactorygetJournalFactory(Element cluster, File home, String id)Parses journal configuration.protected QueryHandlerFactorygetQueryHandlerFactory(Element parent)Parses search index configuration.protected RepositoryLockMechanismFactorygetRepositoryLockMechanismFactory(Element root)Parses repository lock mechanism configuration.AccessManagerConfigparseAccessManagerConfig(Element security)Parses the access manager configuration.protected BeanConfigparseBeanConfig(Element element)Parses a named bean configuration from the given element.protected BeanConfigparseBeanConfig(Element parent, String name)Parses a named bean configuration from the given element.protected ClusterConfigparseClusterConfig(Element parent, File home)Parses cluster configuration.protected DataSourceConfigparseDataSourceConfig(Element parent)Parses the DataSources configuration under the given parent.ImportConfigparseImportConfig(Element parent)Read the optional Import Element of Workspace's configuration.LoginModuleConfigparseLoginModuleConfig(Element security)Parses the login module configuration.protected PersistenceManagerConfigparsePersistenceManagerConfig(Element parent)Parses the PersistenceManager config.RepositoryConfigparseRepositoryConfig(InputSource xml)Parses repository configuration.SecurityConfigparseSecurityConfig(Element security)Parses security configuration.SecurityManagerConfigparseSecurityManagerConfig(Element security)Parses the security manager configuration.protected VersioningConfigparseVersioningConfig(Element parent)Parses versioning configuration.protected WorkspaceConfigparseWorkspaceConfig(Element root)Parse workspace config.WorkspaceConfigparseWorkspaceConfig(InputSource xml)Parses workspace configuration.WorkspaceSecurityConfigparseWorkspaceSecurityConfig(Element parent)Read the optional WorkspaceSecurity Element of Workspace's configuration.voidsetBeanFactory(BeanFactory beanFactory)voidsetConfigVisitor(BeanConfigVisitor configVisitor)-
Methods inherited from class org.apache.jackrabbit.core.config.ConfigurationParser
getAttribute, getAttribute, getElement, getElement, getElements, getEntityResolver, getErrorHandler, getVariables, parseParameters, parseXML, parseXML, postParseModificationHook, replaceVariables
-
-
-
-
Field Detail
-
REPOSITORY_HOME_VARIABLE
public static final String REPOSITORY_HOME_VARIABLE
Name of the repository home directory parser variable.- See Also:
- Constant Field Values
-
REPOSITORY_CONF_VARIABLE
public static final String REPOSITORY_CONF_VARIABLE
Name of the repository configuration file parser variable.- See Also:
- Constant Field Values
-
WORKSPACE_HOME_VARIABLE
public static final String WORKSPACE_HOME_VARIABLE
Name of the workspace home directory parser variable.- See Also:
- Constant Field Values
-
WORKSPACE_NAME_VARIABLE
public static final String WORKSPACE_NAME_VARIABLE
Name of the repository name parser variable.- See Also:
- Constant Field Values
-
SECURITY_ELEMENT
public static final String SECURITY_ELEMENT
Name of the security configuration element.- See Also:
- Constant Field Values
-
SECURITY_MANAGER_ELEMENT
public static final String SECURITY_MANAGER_ELEMENT
Name of the security manager configuration element.- See Also:
- Constant Field Values
-
ACCESS_MANAGER_ELEMENT
public static final String ACCESS_MANAGER_ELEMENT
Name of the access manager configuration element.- See Also:
- Constant Field Values
-
LOGIN_MODULE_ELEMENT
public static final String LOGIN_MODULE_ELEMENT
Name of the login module configuration element.- See Also:
- Constant Field Values
-
WORKSPACES_ELEMENT
public static final String WORKSPACES_ELEMENT
Name of the general workspace configuration element.- See Also:
- Constant Field Values
-
WORKSPACE_ELEMENT
public static final String WORKSPACE_ELEMENT
Name of the workspace configuration element.- See Also:
- Constant Field Values
-
VERSIONING_ELEMENT
public static final String VERSIONING_ELEMENT
Name of the versioning configuration element.- See Also:
- Constant Field Values
-
FILE_SYSTEM_ELEMENT
public static final String FILE_SYSTEM_ELEMENT
Name of the file system configuration element.- See Also:
- Constant Field Values
-
CLUSTER_ELEMENT
public static final String CLUSTER_ELEMENT
Name of the cluster configuration element.- See Also:
- Constant Field Values
-
DATASOURCES_ELEMENT
public static final String DATASOURCES_ELEMENT
Name of the data source configuration element.- See Also:
- Constant Field Values
-
DATASOURCE_ELEMENT
public static final String DATASOURCE_ELEMENT
Name of the data source configuration element.- See Also:
- Constant Field Values
-
JOURNAL_ELEMENT
public static final String JOURNAL_ELEMENT
Name of the journal configuration element.- See Also:
- Constant Field Values
-
DATA_STORE_ELEMENT
public static final String DATA_STORE_ELEMENT
Name of the data store configuration element.- See Also:
- Constant Field Values
-
REPOSITORY_LOCK_MECHANISM_ELEMENT
public static final String REPOSITORY_LOCK_MECHANISM_ELEMENT
Name of the repository lock mechanism configuration element.- See Also:
- Constant Field Values
-
PERSISTENCE_MANAGER_ELEMENT
public static final String PERSISTENCE_MANAGER_ELEMENT
Name of the persistence manager configuration element.- See Also:
- Constant Field Values
-
SEARCH_INDEX_ELEMENT
public static final String SEARCH_INDEX_ELEMENT
Name of the search index configuration element.- See Also:
- Constant Field Values
-
ISM_LOCKING_ELEMENT
public static final String ISM_LOCKING_ELEMENT
Name of the ism locking configuration element.- See Also:
- Constant Field Values
-
APP_NAME_ATTRIBUTE
public static final String APP_NAME_ATTRIBUTE
Name of the application name configuration attribute.- See Also:
- Constant Field Values
-
WSP_NAME_ATTRIBUTE
public static final String WSP_NAME_ATTRIBUTE
Name of the workspace containing security data.- See Also:
- Constant Field Values
-
ROOT_PATH_ATTRIBUTE
public static final String ROOT_PATH_ATTRIBUTE
Name of the root path configuration attribute.- See Also:
- Constant Field Values
-
CONFIG_ROOT_PATH_ATTRIBUTE
public static final String CONFIG_ROOT_PATH_ATTRIBUTE
Name of the config root path configuration attribute.- See Also:
- Constant Field Values
-
MAX_IDLE_TIME_ATTRIBUTE
public static final String MAX_IDLE_TIME_ATTRIBUTE
Name of the maximum idle time configuration attribute.- See Also:
- Constant Field Values
-
DEFAULT_WORKSPACE_ATTRIBUTE
public static final String DEFAULT_WORKSPACE_ATTRIBUTE
Name of the default workspace configuration attribute.- See Also:
- Constant Field Values
-
ID_ATTRIBUTE
public static final String ID_ATTRIBUTE
Name of the id configuration attribute.- See Also:
- Constant Field Values
-
SYNC_DELAY_ATTRIBUTE
public static final String SYNC_DELAY_ATTRIBUTE
Name of the syncDelay configuration attribute.- See Also:
- Constant Field Values
-
STOP_DELAY_ATTRIBUTE
public static final String STOP_DELAY_ATTRIBUTE
Name of the stopDelay configuration attribute.- See Also:
- Constant Field Values
-
DEFAULT_QUERY_HANDLER
public static final String DEFAULT_QUERY_HANDLER
Name of the default search index implementation class.- See Also:
- Constant Field Values
-
CLUSTERED_ATTRIBUTE
public static final String CLUSTERED_ATTRIBUTE
Name of the clustered configuration attribute.- See Also:
- Constant Field Values
-
PRIMARY_DATASTORE_ATTRIBUTE
public static final String PRIMARY_DATASTORE_ATTRIBUTE
Name of the primary DataStore class attribute.- See Also:
- Constant Field Values
-
ARCHIVE_DATASTORE_ATTRIBUTE
public static final String ARCHIVE_DATASTORE_ATTRIBUTE
Name of the archive DataStore class attribute.- See Also:
- Constant Field Values
-
DEFAULT_SYNC_DELAY
public static final String DEFAULT_SYNC_DELAY
Default synchronization delay, in milliseconds.- See Also:
- Constant Field Values
-
DEFAULT_STOP_DELAY
public static final String DEFAULT_STOP_DELAY
Default stop delay, in milliseconds or -1 if the default is derived from the sync delay.- See Also:
- Constant Field Values
-
connectionFactory
protected final ConnectionFactory connectionFactory
The repositoriesConnectionFactory.
-
beanFactory
protected BeanFactory beanFactory
-
configVisitor
protected BeanConfigVisitor configVisitor
-
-
Constructor Detail
-
RepositoryConfigurationParser
protected RepositoryConfigurationParser(Properties variables, ConnectionFactory connectionFactory)
Creates a new configuration parser with the given parser variables and connection factory.- Parameters:
variables- parser variablesconnectionFactory- connection factory
-
RepositoryConfigurationParser
public RepositoryConfigurationParser(Properties variables)
Creates a new configuration parser with the given parser variables.- Parameters:
variables- parser variables
-
-
Method Detail
-
parseRepositoryConfig
public RepositoryConfig parseRepositoryConfig(InputSource xml) throws ConfigurationException
Parses repository configuration. Repository configuration uses the following format:<Repository> <FileSystem ...> <Security appName="..."> <SecurityManager ...> <AccessManager ...> <LoginModule ... (optional)> </Security> <Workspaces rootPath="..." defaultWorkspace="..."/> <Workspace ...> <Versioning ...> </Repository>The
FileSystemelement is abean configurationelement, that specifies the file system implementation for storing global repository information. TheSecurityelement contains anAccessManagerbean configuration element and the JAAS name of the repository application. TheWorkspaceselement contains general workspace parameters, and theWorkspaceelement is a template for the individual workspace configuration files. TheVersioningelement containsversioning configurationfor the repository.In addition to the configured information, the returned repository configuration object also contains the repository home directory path that is given as the ${rep.home} parser variable. Note that the variable must be available for the configuration document to be correctly parsed.
Variable replacementis performed on the security application name attribute, the general workspace configuration attributes, and on the file system, access manager, and versioning configuration information.Note that the returned repository configuration object has not been initialized.
- Parameters:
xml- repository configuration document- Returns:
- repository configuration
- Throws:
ConfigurationException- if the configuration is broken- See Also:
parseBeanConfig(Element, String),parseVersioningConfig(Element)
-
parseBeanConfig
protected BeanConfig parseBeanConfig(Element parent, String name) throws ConfigurationException
Parses a named bean configuration from the given element. Bean configuration uses the following format:<BeanName class="..."> <param name="..." value="..."/> ... </BeanName>The returned bean configuration object contains the configured class name and configuration parameters. Variable replacement is performed on the parameter values.
- Overrides:
parseBeanConfigin classConfigurationParser- Parameters:
parent- parent elementname- name of the bean configuration element- Returns:
- bean configuration,
- Throws:
ConfigurationException- if the configuration element does not exist or is broken
-
parseBeanConfig
protected BeanConfig parseBeanConfig(Element element) throws ConfigurationException
Parses a named bean configuration from the given element. Bean configuration uses the following format:<BeanName class="..."> <param name="..." value="..."/> ... </BeanName>The returned bean configuration object contains the configured class name and configuration parameters. Variable replacement is performed on the parameter values.
- Overrides:
parseBeanConfigin classConfigurationParser- Returns:
- bean configuration,
- Throws:
ConfigurationException- if the configuration element does not exist or is broken
-
parseSecurityConfig
public SecurityConfig parseSecurityConfig(Element security) throws ConfigurationException
Parses security configuration. Security configuration uses the following format:<Security appName="..."> <SecurityManager ...> <AccessManager ...> <LoginModule ... (optional)> </Security>The
SecurityManager, theAccessManagerandLoginModuleare allbean configurationelements.The login module is an optional feature of repository configuration.
- Parameters:
security- the <security> element.- Returns:
- the security configuration.
- Throws:
ConfigurationException- if the configuration is broken
-
parseSecurityManagerConfig
public SecurityManagerConfig parseSecurityManagerConfig(Element security) throws ConfigurationException
Parses the security manager configuration.- Parameters:
security- the <security> element.- Returns:
- the security manager configuration or
null. - Throws:
ConfigurationException- if the configuration is broken
-
parseAccessManagerConfig
public AccessManagerConfig parseAccessManagerConfig(Element security) throws ConfigurationException
Parses the access manager configuration.- Parameters:
security- the <security> element.- Returns:
- the access manager configuration or
null. - Throws:
ConfigurationException- if the configuration is broken
-
parseLoginModuleConfig
public LoginModuleConfig parseLoginModuleConfig(Element security) throws ConfigurationException
Parses the login module configuration.- Parameters:
security- the <security> element.- Returns:
- the login module configuration or
null. - Throws:
ConfigurationException- if the configuration is broken
-
parseWorkspaceConfig
public WorkspaceConfig parseWorkspaceConfig(InputSource xml) throws ConfigurationException
Parses workspace configuration. Workspace configuration uses the following format:<Workspace name="..."> <FileSystem ...> <PersistenceManager ...> <SearchIndex ...> <ISMLocking ...> <WorkspaceSecurity ...> <ISMLocking ...> </Workspace>All the child elements (
FileSystem,PersistenceManager, andSearchIndex) arebean configurationelements. In addition to bean configuration, the search element also contains configuration for the search file system.In addition to the configured information, the returned workspace configuration object also contains the workspace home directory path that is given as the ${wsp.home} parser variable. Note that the variable must be available for the configuration document to be correctly parsed.
Variable replacement is performed on the optional workspace name attribute. If the name is not given, then the name of the workspace home directory is used as the workspace name. Once the name has been determined, it will be added as the ${wsp.name} variable in a temporary configuration parser that is used to parse the contained configuration elements.
The search index configuration element is optional. If it is not given, then the workspace will not have search capabilities.
The ism locking configuration element is optional. If it is not given, then a default implementation is used.
Note that the returned workspace configuration object has not been initialized.
- Parameters:
xml- workspace configuration document- Returns:
- workspace configuration
- Throws:
ConfigurationException- if the configuration is broken- See Also:
parseBeanConfig(Element, String),parseWorkspaceSecurityConfig(Element)
-
parseWorkspaceConfig
protected WorkspaceConfig parseWorkspaceConfig(Element root) throws ConfigurationException
Parse workspace config.- Parameters:
root- root element of the workspace configuration- Returns:
- The workspace configuration
- Throws:
ConfigurationException- See Also:
parseWorkspaceConfig(InputSource)
-
getQueryHandlerFactory
protected QueryHandlerFactory getQueryHandlerFactory(Element parent)
Parses search index configuration. Search index configuration uses the following format:<SearchIndex class="..."> <param name="..." value="..."> ... <FileSystem ...> </Search>Both the
SearchIndexandFileSystemelements arebean configurationelements. If the search implementation class is not given, then a default implementation is used.The search index is an optional feature of workspace configuration. If the search configuration element is not found, then this method returns
null.The FileSystem element in a search index configuration is optional. However some implementations may require a FileSystem.
- Parameters:
parent- parent of theSearchIndexelement- Returns:
- query handler factory
-
parseWorkspaceSecurityConfig
public WorkspaceSecurityConfig parseWorkspaceSecurityConfig(Element parent) throws ConfigurationException
Read the optional WorkspaceSecurity Element of Workspace's configuration. It uses the following format:<WorkspaceSecurity> <AccessControlProvider class="..." (optional)> </WorkspaceSecurity>- Parameters:
parent- Workspace-Root-Element- Returns:
- a new
WorkspaceSecurityConfigornullif none is configured. - Throws:
ConfigurationException
-
parseImportConfig
public ImportConfig parseImportConfig(Element parent) throws ConfigurationException
Read the optional Import Element of Workspace's configuration. It uses the following format:<Import> <ProtectedNodeImporter class="..." (optional)> <ProtectedNodeImporter class="..." (optional)> ... <ProtectedPropertyImporter class="..." (optional)> </Import>- Parameters:
parent- Workspace-Root-Element- Returns:
- a new
ImportConfigornullif none is configured. - Throws:
ConfigurationException
-
getISMLockingFactory
protected ISMLockingFactory getISMLockingFactory(Element parent)
Returns an ISM locking factory that createsISMLockinginstances based on the given configuration. ISM locking configuration uses the following format:<ISMLocking class="..."> <param name="..." value="..."> ... </ISMLocking>The
ISMLockingis abean configurationelement.ISM locking is an optional part of the workspace configuration. If the ISM locking element is not found, then the returned factory will create instances of the
DefaultISMLockingclass.- Parameters:
parent- parent of theISMLockingelement- Returns:
- ISM locking factory
-
parseVersioningConfig
protected VersioningConfig parseVersioningConfig(Element parent) throws ConfigurationException
Parses versioning configuration. Versioning configuration uses the following format:<Versioning rootPath="..."> <FileSystem ...> <PersistenceManager ...> </Versioning>Both the
FileSystemandPersistenceManagerelements arebean configurationelements. In addition to the bean parameter values,variable replacementis performed also on the versioning root path attribute.- Parameters:
parent- parent of theVersioningelement- Returns:
- versioning configuration
- Throws:
ConfigurationException- if the configuration is broken
-
parseClusterConfig
protected ClusterConfig parseClusterConfig(Element parent, File home) throws ConfigurationException
Parses cluster configuration. Cluster configuration uses the following format:<Cluster> <Journal ...> </Journal>Clusteris abean configurationelement.Clustering is an optional feature. If the cluster element is not found, then this method returns
null.- Parameters:
parent- parent of theJournalelementhome- repository home directory- Returns:
- cluster configuration, or
null - Throws:
ConfigurationException- if the configuration is broken
-
getJournalFactory
protected JournalFactory getJournalFactory(Element cluster, File home, String id) throws ConfigurationException
Parses journal configuration. Journal configuration uses the following format:<Journal class="..."> <param name="..." value="..."> ... </Journal>Journalis abean configurationelement.- Parameters:
cluster- parent cluster elementhome- repository home directoryid- cluster node id- Returns:
- journal factory
- Throws:
ConfigurationException- if the configuration is broken
-
parseDataSourceConfig
protected DataSourceConfig parseDataSourceConfig(Element parent) throws ConfigurationException
Parses the DataSources configuration under the given parent. It has the following format:<DataSources> <DataSource name="..."> <param name="..." value="..."> ... </DataSource> <DataSource name="..."> <param name="..." value="..."> ... </DataSource> </DataSources>- Parameters:
parent- the parent of the DataSources element- Returns:
- a
DataSourceConfigfor the repository - Throws:
ConfigurationException- on error
-
getDataStoreFactory
protected DataStoreFactory getDataStoreFactory(Element parent, String directory) throws ConfigurationException
Parses data store configuration. Data store configuration uses the following format:<DataStore class="..."> <param name="..." value="..."> ... </DataStore>Its also possible to configure a multi data store. The configuration uses following format:<DataStore class="org.apache.jackrabbit.core.data.MultiDataStore"> <param name="primary" value="org.apache.jackrabbit.core.data.db.XXDataStore"> <param name="..." value="..."> ... </param> <param name="archive" value="org.apache.jackrabbit.core.data.db.XXDataStore"> <param name="..." value="..."> ... </param> </DataStore>DataStoreis abean configurationelement.- Parameters:
parent- configuration elementdirectory- the repository directory- Returns:
- data store factory
- Throws:
ConfigurationException- if the configuration is broken
-
getRepositoryLockMechanismFactory
protected RepositoryLockMechanismFactory getRepositoryLockMechanismFactory(Element root)
Parses repository lock mechanism configuration. Repository lock mechanism configuration uses the following format:<RepositoryLockMechanism class="..." > <param name="..." value="..."> ... </RepositoryLockMechanism>RepositoryLockMechanismis abean configurationelement.- Parameters:
root- the root configuration element- Returns:
- repository lock mechanism factory
-
parsePersistenceManagerConfig
protected PersistenceManagerConfig parsePersistenceManagerConfig(Element parent) throws ConfigurationException
Parses the PersistenceManager config.- Parameters:
parent- parent of thePersistenceManagerelement- Returns:
- persistence manager configuration
- Throws:
ConfigurationException- if the configuration is broken
-
createSubParser
protected RepositoryConfigurationParser createSubParser(Properties variables)
Creates a new instance of a configuration parser but with overlayed variables and the same connection factory as this parser.- Parameters:
variables- the variables overlay- Returns:
- a new configuration parser instance
-
getFileSystemFactory
protected FileSystemFactory getFileSystemFactory(Element parent, String name) throws ConfigurationException
Creates and returns a factory object that createsFileSysteminstances based on the bean configuration at the named element.- Parameters:
parent- parent elementname- name of the bean configuration element- Returns:
- file system factory
- Throws:
ConfigurationException- if the bean configuration is invalid
-
setBeanFactory
public void setBeanFactory(BeanFactory beanFactory)
-
setConfigVisitor
public void setConfigVisitor(BeanConfigVisitor configVisitor)
-
-