com.evolveum.midpoint.init
Class AuditFactory
java.lang.Object
com.evolveum.midpoint.init.AuditFactory
- All Implemented Interfaces:
- RuntimeConfiguration, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware
public class AuditFactory
- extends Object
- implements org.springframework.context.ApplicationContextAware, RuntimeConfiguration
- Author:
- lazyman
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AuditFactory
public AuditFactory()
init
public void init()
destroy
public void destroy()
getAuditService
public AuditService getAuditService()
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
getComponentId
public 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
Copyright © 2013 evolveum. All Rights Reserved.