Package java.util

Examples of java.util.Properties.clone()


        // this code should be revisited and cleaned up to use
        // an Iterator which may (or may not) alleviate the need for
        // the clone.  Many thanks to Padraig O'hIceadha
        // <padraig@gradient.ie> for finding this problem.  Bugzilla 2000.

        Enumeration keys = ((Properties) props.clone()).keys();
        while (keys.hasMoreElements())
        {
            String key = (String) keys.nextElement();
            // Now check if the given key was specified as a
            // System property. If so, the system property
View Full Code Here


        // this code should be revisited and cleaned up to use
        // an Iterator which may (or may not) alleviate the need for
        // the clone.  Many thanks to Padraig O'hIceadha
        // <padraig@gradient.ie> for finding this problem.  Bugzilla 2000.

        Enumeration keys = ((Properties) props.clone()).keys();
        while (keys.hasMoreElements())
        {
            String key = (String) keys.nextElement();
            // Now check if the given key was specified as a
            // System property. If so, the system property
View Full Code Here

        // this code should be revisited and cleaned up to use
        // an Iterator which may (or may not) alleviate the need for
        // the clone.  Many thanks to Padraig O'hIceadha
        // <padraig@gradient.ie> for finding this problem.  Bugzilla 2000.

        Enumeration keys = ((Properties) props.clone()).keys();
        while (keys.hasMoreElements())
        {
            String key = (String) keys.nextElement();
            // Now check if the given key was specified as a
            // System property. If so, the system property
View Full Code Here

            Properties prop = new Properties();
            prop
                    .load(new FileInputStream(root
                            + "JetspeedResources.properties"));
            prop.clone();

            TurbineResources trProp = (TurbineResources) TurbineResources
                    .getResources(root + "JetspeedResources.properties");

            TurbineResources.setProperty("portal.title", title);
View Full Code Here

      for (int j = 0; j < map[i].length; j++) {
        Properties p = getTileInstancePropertiesAt(i, j);

        if (p != null) {
          Integer key = i + j * bounds.width;
          clone.tileInstanceProperties.put(key, (Properties) p.clone());
        }
      }
    }

    return clone;
View Full Code Here

         = (Properties) this.attributeDefaultValues.get(name);

      if (attribs == null) {
         attribs = new Properties();
      } else {
         attribs = (Properties) attribs.clone();
      }

      this.currentElements.push(attribs);
   }
View Full Code Here

        checkAccess();
        final Properties props;
        synchronized (this) {
            props = this.mailProps;
        }
        return (Properties) props.clone();
    }

    /**
     * Gets the attachment filters.  If the attachment filter does not
     * allow any <tt>LogRecord</tt> to be formatted, the attachment may
View Full Code Here

    public Object clone() {
        Properties parent;
        synchronized (this) {
            parent = defaults;
        }
        return parent.clone();
    }

    /**
     * Performs the super action, then searches the log manager
     * by the prefix property, and then by the key itself.
View Full Code Here

        checkAccess();
        final Properties props;
        synchronized (this) {
            props = this.mailProps;
        }
        return (Properties) props.clone();
    }

    /**
     * Gets the attachment filters.  If the attachment filter does not
     * allow any <tt>LogRecord</tt> to be formatted, the attachment may
View Full Code Here

    type = (String) nodeMap.get(CallFlowMonitor.CALL_STACK_ROW_TYPE_KEY);
    if (type.equals(CallFlowMonitor.CALL_STACK_METHOD_START)) {
        parent = child;
        methodName = (String) nodeMap.get(CallFlowMonitor.METHOD_NAME_KEY);
        // Don't share properties...
        props = (Properties) props.clone();
        props.setProperty("text", methodName);
        child = ComponentUtil.getChild(
      parent, "node" + (++idx),
      "com.sun.jsftemplating.component.factory.sun.TreeNodeFactory",
      props);
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.