Examples of Settings


Examples of manager.Settings

  // Main
  public static void main(String[] args) {
    String language;
       
        //try to open the settings file
    Application.settings = new Settings();

    if(Application.settings.loadFromFile("settings.xml"))
      language = Application.settings.getLanguage();
    // unable to open the config file
    else {
View Full Code Here

Examples of model.Settings

   */
  public PhoenixCore() {
    PhoenixCore.INSTANCE = this;
    //module initialisieren
    //  Einstellungen
    settings = new Settings();
    //  Jukebox
    jukebox = new Jukebox(this);
    //  Crawler
    crawler = new AudioCrawler();
   
View Full Code Here

Examples of mungbean.Settings

@RunWith(JDaveRunner.class)
public class GridFsStorageIntegrationTest extends Specification<GridFsStorage> {
    public class WithStorage {

        public GridFsStorage create() {
            return new Mungbean(new Settings(), new Server("localhost", 27017)).openDatabase(new ObjectId().toHex()).openStorage("foobar");
        }
View Full Code Here

Examples of name.pehl.karaka.server.settings.entity.Settings

{
    @Produces
    @DefaultSettings
    Settings getDefaultSettings()
    {
        Settings settings = new Settings();
        settings.setFormatHoursAsFloatingPointNumber(false);
        User user = new User("_unknown_user_id_", "_unknown_username_", "_unknown_email_");
        settings.setUser(user);
        return settings;
    }
View Full Code Here

Examples of name.pehl.karaka.shared.model.Settings

        models.add(currentSettings);
    }

    private static Settings defaultSettings()
    {
        Settings defaults = new Settings();
        defaults.setFormatHoursAsFloatingPointNumber(false);
        defaults.setTimeZoneId("UTC");
        User defaultUser = new User();
        defaultUser.setUserId("n/a");
        defaultUser.setUsername("n/a");
        defaultUser.setFirstname("n/a");
        defaultUser.setSurname("n/a");
        defaultUser.setEmail("n/a");
        defaults.setUser(defaultUser);
        return defaults;
    }
View Full Code Here

Examples of net.csdn.common.settings.Settings

        method.setAccessible(true);
        method.invoke(null);
    }

    public static Class[] findTestClass() throws Exception {
        Settings settings = ServiceFramwork.injector.getInstance(Settings.class);
        List<Class> classList = new ArrayList<Class>();
        List<String> classStrs = ServiceFramwork.scanService.classNames(settings.get("application.test"), DynamicSuite.class);
        for (String abc : classStrs) {
            classList.add(Class.forName(abc));
        }
        Class[] classes = testClasses.length > 0 ? testClasses : new Class[classList.size()];
        classList.toArray(classes);
View Full Code Here

Examples of net.datacrow.settings.Settings

        return false;
    }
   
    private Collection<Integer> getFields(int module) {
        Settings settings = DcModules.get(module).getSettings();
        Collection<Integer> fields = new ArrayList<Integer>();
        for (int field : settings.getIntArray(DcRepository.ModuleSettings.stCardViewItemDescription))
            fields.add(Integer.valueOf(field));

        for (int field : settings.getIntArray(DcRepository.ModuleSettings.stCardViewPictureOrder))
            fields.add(Integer.valueOf(field));
       
        return fields;
    }
View Full Code Here

Examples of net.easymodo.asagi.settings.Settings

        }
        dumper.initDumper(bSet);
    }

    public static void main(String[] args) {
        Settings fullSettings;
        String settingsJson;
        Gson gson = new Gson();
        String settingsFileName = SETTINGS_FILE;

        for(int i = 0; i < args.length; ++i) {
            if(args[i].equals("--config") && ++i < args.length) {
                settingsFileName = args[i];
            }
        }

        File debugFile = new File(DEBUG_FILE);
        try {
            debugOut = new BufferedWriter(Files.newWriterSupplier(debugFile, Charsets.UTF_8, true).getOutput());
        } catch(IOException e1) {
            System.err.println("WARN: Cannot write to debug file");
        }

        BufferedReader settingsReader;
        if(settingsFileName.equals("-")) {
            settingsReader = new BufferedReader(new InputStreamReader(System.in, Charsets.UTF_8));
        } else {
            File settingsFile = new File(settingsFileName);
            try {
                settingsReader = Files.newReader(settingsFile, Charsets.UTF_8);
            } catch(FileNotFoundException e) {
                System.err.println("ERROR: Can't find settings file ("+ settingsFile + ")");
                return;
            }
        }

        try {
            settingsJson = CharStreams.toString(settingsReader);
        } catch(IOException e) {
            System.err.println("ERROR: Error while reading settings file");
            return;
        }

        OuterSettings outerSettings;
        try {
            outerSettings = gson.fromJson(settingsJson, OuterSettings.class);
        } catch(JsonSyntaxException e) {
            System.err.println("ERROR: Settings file is malformed!");
            return;
        }

        fullSettings = outerSettings.getSettings();

        dumperEngine = fullSettings.getDumperEngine();
        sourceEngine = fullSettings.getSourceEngine();
        if(dumperEngine == null) dumperEngine = "DumperJSON";
        if(sourceEngine == null) sourceEngine = "YotsubaJSON";

        for(String boardName : fullSettings.getBoardSettings().keySet()) {
            if("default".equals(boardName)) continue;
            try {
                spawnBoard(boardName, fullSettings);
            } catch(BoardInitException e) {
                System.err.println("ERROR: Error initializing dumper for /" + boardName + "/:");
View Full Code Here

Examples of net.hasor.core.Settings

    private ExecutesManager  manager          = null;
    //
    //
    public ServerRsfContext() throws IOException, URISyntaxException {
        manager = new ExecutesManager(minCorePoolSize, maxCorePoolSize, queueSize, keepAliveTime);
        Settings settings = new StandardContextSettings();
        settings.refresh();
        serializeFactory = SerializeFactory.createFactory(settings);
    }
View Full Code Here

Examples of net.sf.laja.launch.Settings

public class InargsParserTest {
  private Settings settings;
 
  @Before
  public void init() {
    settings = new Settings();
  }
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.