/*
* The contents of this file are subject to the terms of the Common Development and
* Distribution License (the License). You may not use this file except in compliance with the
* License.
*
* You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
* specific language governing permission and limitations under the License.
*
* When distributing Covered Software, include this CDDL Header Notice in each file and include
* the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
* Header, with the fields enclosed by brackets [] replaced by your own identifying
* information: "Portions copyright [year] [name of copyright owner]".
*
* Copyright 2015-2016 ForgeRock AS.
*/
/**
* Responsible for creating the AuditService on configuration change.
*
* @since 13.0.0
*/
/**
* Create an instance of AuditServiceProviderImpl.
*
* @param configProvider The configProvider responsible for providing audit service configuration.
* @param shutdownManager The shutdown manager to register the shutdown listener to.
*/
public AuditServiceProviderImpl(AuditServiceConfigurationProvider configProvider, ShutdownManager shutdownManager) {
this.configProvider = configProvider;
this.shutdownManager = shutdownManager;
this.defaultAuditService = createDefaultAuditService();
}
DefaultAuditServiceProxy auditServiceProxy = new DefaultAuditServiceProxy(builder.build(), configuration);
try {
} catch (ServiceUnavailableException e) {
}
return auditServiceProxy;
}
private void registerListeners() {
public void globalConfigurationChanged() {
}
}
}
});
public void shutdown() {
}
});
}
if (auditService == null) {
return defaultAuditService;
} else {
return auditService;
}
}
return defaultAuditService;
}
private void refreshDefaultAuditService() {
if (configuration.isAuditEnabled()) {
}
try {
} catch (ServiceUnavailableException e) {
}
}
if (configuration.isAuditEnabled()) {
}
try {
if (auditService == null) {
} else {
}
} catch (ServiceUnavailableException e) {
}
}
if (auditService != null) {
}
}
private void closeAuditServices() {
}
}
private void configureEventHandlers(AuditServiceBuilder builder, Set<AuditEventHandlerConfiguration> configs) {
if (eventHandler != null) {
try {
} catch (AuditException e) {
}
}
}
}
try {
}
return null;
}
}