com.evolveum.midpoint.init
Class RepositoryFactory
java.lang.Object
com.evolveum.midpoint.init.RepositoryFactory
- All Implemented Interfaces:
- RuntimeConfiguration, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware
public class RepositoryFactory
- extends java.lang.Object
- implements org.springframework.context.ApplicationContextAware, RuntimeConfiguration
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RepositoryFactory
public RepositoryFactory()
init
public void init()
destroy
public void destroy()
getComponentId
public java.lang.String getComponentId()
- Description copied from interface:
RuntimeConfiguration
- Return symbolic name of the component in configuration subsytem.
Samples:
-
repository -> midpoint.repository
provisioning -> midpoint.provisioning
- Specified by:
getComponentId
in interface RuntimeConfiguration
- Returns:
- String name of component
getCurrentConfiguration
public org.apache.commons.configuration.Configuration getCurrentConfiguration()
- Description copied from interface:
RuntimeConfiguration
- Returns current component configuration in commons configuration structure
http://commons.apache.org/configuration/apidocs/org/apache/commons/configuration/Configuration.html
Example of structure for repository:
Configuration config = new BaseConfiguration();
config.setProperty("host", "localhost");
config.setProperty("port" , 12345);
return config;
Note: current configuration can be obtained only on fully initialized objects. If called on not initialized objects, then it can end with undefined behavior
- Specified by:
getCurrentConfiguration
in interface RuntimeConfiguration
- Returns:
- Commons configuration
getRepositoryService
public RepositoryService getRepositoryService()
getCacheRepositoryService
public RepositoryService getCacheRepositoryService()
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
- Specified by:
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
Copyright © 2012 evolveum. All Rights Reserved.