use of org.forgerock.openam.audit.configuration.AuditServiceConfigurationListener in project OpenAM by OpenRock.
the class AuditServiceProviderImpl method registerListeners.
private void registerListeners() {
configProvider.addConfigurationListener(new AuditServiceConfigurationListener() {
@Override
public void globalConfigurationChanged() {
refreshDefaultAuditService();
}
@Override
public void realmConfigurationChanged(String realm) {
refreshRealmAuditService(realm);
}
@Override
public void realmConfigurationRemoved(String realm) {
removeRealmAuditService(realm);
}
});
shutdownManager.addShutdownListener(new ShutdownListener() {
@Override
public void shutdown() {
closeAuditServices();
}
});
}
Aggregations