public class RepositoryFactory extends Object implements org.springframework.context.ApplicationContextAware, RuntimeConfiguration
Constructor and Description |
---|
RepositoryFactory() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
RepositoryService |
getCacheRepositoryService() |
String |
getComponentId()
Return symbolic name of the component in configuration subsytem.
|
org.apache.commons.configuration.Configuration |
getCurrentConfiguration()
Returns current component configuration in commons configuration structure
http://commons.apache.org/configuration/apidocs/org/apache/commons/configuration/Configuration.html |
RepositoryServiceFactory |
getFactory() |
RepositoryService |
getRepositoryService() |
void |
init() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
public void init()
public void destroy()
public String getComponentId()
RuntimeConfiguration
getComponentId
in interface RuntimeConfiguration
public org.apache.commons.configuration.Configuration getCurrentConfiguration()
RuntimeConfiguration
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;
getCurrentConfiguration
in interface RuntimeConfiguration
public RepositoryService getRepositoryService()
public RepositoryServiceFactory getFactory()
public RepositoryService getCacheRepositoryService()
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
Copyright © 2016 evolveum. All rights reserved.