Search in sources :

Example 1 with SchrodingerComponentInitListener

use of com.evolveum.midpoint.web.util.SchrodingerComponentInitListener in project midpoint by Evolveum.

the class MidPointApplication method initializeSchrodinger.

private void initializeSchrodinger() {
    if (applicationContext == null) {
        return;
    }
    Environment environment = applicationContext.getEnvironment();
    if (environment == null) {
        return;
    }
    String value = environment.getProperty(MidpointConfiguration.MIDPOINT_SCHRODINGER_PROPERTY);
    boolean enabled = Boolean.parseBoolean(value);
    if (enabled) {
        LOGGER.info("Schrodinger plugin enabled");
        getComponentInitializationListeners().add(new SchrodingerComponentInitListener());
    }
}
Also used : Environment(org.springframework.core.env.Environment) PolyString(com.evolveum.midpoint.prism.polystring.PolyString) SchrodingerComponentInitListener(com.evolveum.midpoint.web.util.SchrodingerComponentInitListener)

Aggregations

PolyString (com.evolveum.midpoint.prism.polystring.PolyString)1 SchrodingerComponentInitListener (com.evolveum.midpoint.web.util.SchrodingerComponentInitListener)1 Environment (org.springframework.core.env.Environment)1