Examples of ConfigManager


Examples of fr.soleil.salsa.config.manager.ConfigManager

    @Override
    protected void initBeforeSetView() {
        super.initBeforeSetView();

        configManager = new ConfigManager();
        startStopController = new StartStopController(this, errorController, readOnly);
        shortcutsController = new ShortcutsController(this);
        generalShortcutsToolBarController = new GeneralShortcutsToolBarController();
        sensorsListController = new SensorListController(null, errorController);
        actuatorsListController = new ActuatorListController(null, errorController);
View Full Code Here

Examples of fr.soleil.salsa.config.manager.ConfigManager

    /**
     * Common to all constructors.
     */
    private void construct() {
        setDragEnabled(true);
        configManager = new ConfigManager();
        copyAction = new AbstractAction("Copy") {
            private static final long serialVersionUID = 9217466802582309262L;

            @Override
            public void actionPerformed(ActionEvent e) {
View Full Code Here

Examples of fr.soleil.salsa.config.manager.ConfigManager

    @Override
    protected void initBeforeSetView() {
        super.initBeforeSetView();

        configManager = new ConfigManager();
        startStopController = new StartStopController(this, errorController, readOnly);
        shortcutsController = new ShortcutsController(this);
        generalShortcutsToolBarController = new GeneralShortcutsToolBarController();
        sensorsListController = new SensorListController(null, errorController);
        actuatorsListController = new ActuatorListController(null, errorController);
View Full Code Here

Examples of fr.soleil.salsa.config.manager.ConfigManager

    @Override
    protected void initBeforeSetView() {
        super.initBeforeSetView();

        configManager = new ConfigManager();
        startStopController = new StartStopController(this, errorController, readOnly);
        shortcutsController = new ShortcutsController(this);
        generalShortcutsToolBarController = new GeneralShortcutsToolBarController();
        sensorsListController = new SensorListController(null, errorController);
        actuatorsListController = new ActuatorListController(null, errorController);
View Full Code Here

Examples of fr.soleil.salsa.config.manager.ConfigManager

    }

    @Override
    protected void initBeforeSetView() {
        super.initBeforeSetView();
        configManager = new ConfigManager();
        startStopController = new StartStopController(this, errorController);
        shortcutsController = new ShortcutsController(this);
        generalShortcutsToolBarController = new GeneralShortcutsToolBarController();
        sensorsListController = new SensorListController(null, errorController);
        actuatorsListController = new ActuatorListController(null, errorController);
View Full Code Here

Examples of fr.soleil.salsa.config.manager.ConfigManager

    /**
     * Common to all constructors.
     */
    private void construct() {
        setDragEnabled(true);
        configManager = new ConfigManager();
        copyAction = new AbstractAction("Copy") {
            private static final long serialVersionUID = 9217466802582309262L;

            @Override
            public void actionPerformed(ActionEvent e) {
View Full Code Here

Examples of io.druid.common.config.ConfigManager

          }
        }
    );

    return new ConfigManager(dbConnector, dbTables, config);
  }
View Full Code Here

Examples of io.hawt.system.ConfigManager

            new TomcatAuthenticationContainerDiscovery()
    };

    @Override
    public void init(FilterConfig filterConfig) throws ServletException {
        ConfigManager config = (ConfigManager) filterConfig.getServletContext().getAttribute("ConfigManager");

        String defaultRolePrincipalClasses = "";

        if (System.getProperty("karaf.name") != null) {
            defaultRolePrincipalClasses = "org.apache.karaf.jaas.boot.principal.RolePrincipal,org.apache.karaf.jaas.modules.RolePrincipal,org.apache.karaf.jaas.boot.principal.GroupPrincipal";
        }

        if (config != null) {
            configuration.setRealm(config.get("realm", "karaf"));
            // we have either role or roles
            String roles = config.get("role", null);
            if (roles == null) {
                roles = config.get("roles", null);
            }
            if (roles == null) {
                // use default roles (karaf roles)
                roles = "admin,viewer";
            }
            configuration.setRole(roles);
            configuration.setRolePrincipalClasses(config.get("rolePrincipalClasses", defaultRolePrincipalClasses));
            configuration.setEnabled(Boolean.parseBoolean(config.get("authenticationEnabled", "true")));
            configuration.setNoCredentials401(Boolean.parseBoolean(config.get("noCredentials401", "false")));
        }

        // JVM system properties can override always
        if (System.getProperty(HAWTIO_AUTHENTICATION_ENABLED) != null) {
            configuration.setEnabled(Boolean.getBoolean(HAWTIO_AUTHENTICATION_ENABLED));
View Full Code Here

Examples of net.sf.jproxyloader.config.ConfigManager

    when(defaultProxySelectorMock.select(any(URI.class))).thenReturn(defaultProxies);

    config = mock(Configuration.class);
    when(config.getNoProxyHosts()).thenReturn(noProxyHosts);

    ConfigManager configManagerMock = mock(ConfigManager.class);
    Whitebox.setInternalState(ConfigManager.class, "instance", configManagerMock);
    when(configManagerMock.isLateInitializationPerformed()).thenReturn(true); // prevent initialization of FileConfig
    when(configManagerMock.getConfiguration()).thenReturn(config);

  }
View Full Code Here

Examples of se.sics.mspsim.util.ConfigManager

   
    this.mspNode = node;
   
    node.setCommandHandler(commandHandler);

    ConfigManager config = new ConfigManager();
    node.setup(config);

    this.myCpu = node.getCPU();
    this.myCpu.setMonitorExec(true);
    this.myCpu.setTrace(0); /* TODO Enable */
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.