Skip to content

Commit

Permalink
RemoveUnusedSecurityFilterPublisher: review, inner class can be static
Browse files Browse the repository at this point in the history
  • Loading branch information
virgo47 committed Apr 1, 2022
1 parent 9ce1223 commit f396e55
Showing 1 changed file with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,27 +1,24 @@
/*
* Copyright (c) 2010-2019 Evolveum and contributors
* Copyright (C) 2010-2022 Evolveum and contributors
*
* This work is dual-licensed under the Apache License 2.0
* and European Union Public License. See LICENSE file for details.
*/
package com.evolveum.midpoint.authentication.api;

import com.evolveum.midpoint.authentication.api.config.MidpointAuthentication;
import javax.annotation.PostConstruct;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.stereotype.Component;

import com.evolveum.midpoint.authentication.api.config.MidpointAuthentication;
import com.evolveum.midpoint.util.logging.Trace;
import com.evolveum.midpoint.util.logging.TraceManager;

import javax.annotation.PostConstruct;

/**
* @author skublik
*/

@Component
public class RemoveUnusedSecurityFilterPublisher {

Expand All @@ -39,15 +36,15 @@ public void publishCustomEvent(final MidpointAuthentication mpAuthentication) {
}

@PostConstruct
public void afterConstruct(){
public void afterConstruct() {
instance = this;
}

public static RemoveUnusedSecurityFilterPublisher get() {
return instance;
}

private class RemoveUnusedSecurityFilterEventImpl extends RemoveUnusedSecurityFilterEvent {
private static class RemoveUnusedSecurityFilterEventImpl extends RemoveUnusedSecurityFilterEvent {

private final MidpointAuthentication mpAuthentication;

Expand Down

0 comments on commit f396e55

Please sign in to comment.