Search in sources :

Example 1 with AuditServiceConfigurationListener

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();
        }
    });
}
Also used : ShutdownListener(org.forgerock.util.thread.listener.ShutdownListener) AuditServiceConfigurationListener(org.forgerock.openam.audit.configuration.AuditServiceConfigurationListener)

Aggregations

AuditServiceConfigurationListener (org.forgerock.openam.audit.configuration.AuditServiceConfigurationListener)1 ShutdownListener (org.forgerock.util.thread.listener.ShutdownListener)1