use of org.forgerock.json.resource.ServiceUnavailableException in project OpenAM by OpenRock.
the class AuditServiceProviderImpl method createDefaultAuditService.
private DefaultAuditServiceProxy createDefaultAuditService() {
AMAuditServiceConfiguration configuration = new AMAuditServiceConfiguration(false);
configuration.setAvailableAuditEventHandlers(Collections.<String>emptyList());
AuditServiceBuilder builder = AuditServiceBuilder.newAuditService().withEventTopicsMetaData(eventTopicsMetaData).withConfiguration(configuration);
DefaultAuditServiceProxy auditServiceProxy = new DefaultAuditServiceProxy(builder.build(), configuration);
try {
auditServiceProxy.startup();
} catch (ServiceUnavailableException e) {
debug.error("Default Audit Service configuration failed.", e);
}
return auditServiceProxy;
}
Aggregations