| | |
| | | |
| | | if (config.isEnabled()) |
| | | { |
| | | final P logPublisher = isCommonAuditConfig(config) ? |
| | | final P logPublisher = serverContext.getCommonAudit().isCommonAuditConfig(config) ? |
| | | getLogPublisherForCommonAudit(config) : getLogPublisher(config); |
| | | addLogPublisher(logPublisher); |
| | | } |
| | |
| | | { |
| | | try |
| | | { |
| | | final P logPublisher = isCommonAuditConfig(config) ? |
| | | final P logPublisher = serverContext.getCommonAudit().isCommonAuditConfig(config) ? |
| | | getLogPublisherForCommonAudit(config) : getLogPublisher(config); |
| | | addLogPublisher(logPublisher); |
| | | } |
| | |
| | | } |
| | | try |
| | | { |
| | | if (isCommonAuditConfig(config)) |
| | | CommonAudit commonAudit = serverContext.getCommonAudit(); |
| | | if (commonAudit.isCommonAuditConfig(config)) |
| | | { |
| | | serverContext.getCommonAudit().addOrUpdatePublisher(config); |
| | | commonAudit.addOrUpdatePublisher(config); |
| | | } // else the publisher is currently active, so we don't need to do |
| | | // anything. |
| | | } |
| | |
| | | removeLogPublisher(logPublisher); |
| | | try |
| | | { |
| | | if (isCommonAuditConfig(config)) |
| | | CommonAudit commonAudit = serverContext.getCommonAudit(); |
| | | if (commonAudit.isExistingCommonAuditConfig(config)) |
| | | { |
| | | serverContext.getCommonAudit().removePublisher(config); |
| | | commonAudit.removePublisher(config); |
| | | } |
| | | } |
| | | catch (ConfigException e) |