Package java.util

Examples of java.util.Properties.clear()


        Properties props=new Properties();
        props.setProperty("timeout", "500,1000,2000,3000");
        unicast.setProperties(props);

        DISCARD discard=new DISCARD();
        props.clear();
        props.setProperty("down", "0.1"); // discard all down message with 10% probability
        discard.setProperties(props);

        Protocol[] stack=new Protocol[]{unicast,discard};
        createStack(stack);
View Full Code Here


        int i = 1;
        Properties tmp = new Properties();
        for (Locale file_ : Locale.values()) {
            String file = file_.toString();
            try {
                tmp.clear();
                tmp.load(new InputStreamReader(I18N.class.getResource("/i18n/" + file).openStream(), "UTF8"));
                localeFiles.put(file, tmp.getProperty("LOCALE_NAME", file));
                synchronized (localeIndices) {
                    localeIndices.put(i, file);
                }
View Full Code Here

    public void setUp() throws Exception {
        UnitTestUtil.startUp();
        cleanDir01.mkdir();
        cleanDir02.mkdir();
        Properties p = ConfigurationLoader.getProperty();
        p.clear();
    }

    @After
    public void tearDown() throws Exception {
        UnitTestUtil.tearDown();
View Full Code Here

    public void setUp() throws Exception {
        UnitTestUtil.startUp();
        cleanDir01.mkdir();
        cleanDir02.mkdir();
        Properties p = ConfigurationLoader.getProperty();
        p.clear();
    }

    @After
    public void tearDown() throws Exception {
        UnitTestUtil.tearDown();
View Full Code Here

        ConfigurationLoader.setSysProp(p);
        System.setProperties(p);
    }
    public static void tearDownEnv() throws Exception {
        Properties p = System.getProperties();
        p.clear();
        ConfigurationLoader.setSysProp(p);
        System.setProperties(p);
    }
    public static void setUpBeforeClass() throws Exception {
        targetDir.mkdir();
View Full Code Here

                List<String> managed = configFactory.getResourceIds("DataSource", required);

                required.put("JtaManaged", "false");
                List<String> unmanaged = configFactory.getResourceIds("DataSource", required);

                required.clear();
                List<String> unknown = configFactory.getResourceIds("DataSource", required);

                logger.debug("Available DataSources");
                for (String name : managed) {
                    logger.debug("DataSource(name=" + name + ", JtaManaged=true)");
View Full Code Here

                    required.put("JtaManaged", "true");
                    jtaDataSourceId = findResourceId(id, "DataSource", required, null);

                    if (jtaDataSourceId == null) {
                        //No jta managed data source found. Try finding a non-jta managed
                        required.clear();
                        required.put("JtaManaged", "false");
                        nonJtaDataSourceId = findResourceId(id, "DataSource", required, null);
                    }
                   
                    if (jtaDataSourceId == null && nonJtaDataSourceId == null) {
View Full Code Here

                        nonJtaDataSourceId = findResourceId(id, "DataSource", required, null);
                    }
                   
                    if (jtaDataSourceId == null && nonJtaDataSourceId == null) {
                        // Neither jta nor non-jta managed data sources were found. try to find one with it unset
                        required.clear();
                        required.put("JtaManaged", NONE);
                        jtaDataSourceId = findResourceId(id, "DataSource", required, null);
                    }
                   
                    if (jtaDataSourceId != null || nonJtaDataSourceId != null) {
View Full Code Here

            //  if any of the existing data sources are a good match or if
            //  one needs to be generated.
            //
            if (jtaDataSourceId == null && nonJtaDataSourceId == null){

                required.clear();
                required.put("JtaManaged", "true");
                jtaDataSourceId = firstMatching("DataSource", required, null);

                if (jtaDataSourceId == null){
                    required.clear();
View Full Code Here

                required.clear();
                required.put("JtaManaged", "true");
                jtaDataSourceId = firstMatching("DataSource", required, null);

                if (jtaDataSourceId == null){
                    required.clear();
                    required.put("JtaManaged", "false");
                    nonJtaDataSourceId = firstMatching("DataSource", required, null);
                }
            }
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.