Commons Configuration
  1. Commons Configuration
  2. CONFIGURATION-69

[configuration] FileChangedReloadingStrategy cannot be resolved or is not a type

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

      Description

      Hi
      I am using the 1.0 version with all other required jar like
      Java 1.3
      commons-collections-3.0.jar
      commons-lang-2.0.jar
      IDE - WSAD 5.12

      When i tried to code following way which is given in example on the apache site
      itself

      PropertiesConfiguration config = new PropertiesConfiguration("usergui.properties");
      config.setReloadingStrategy(new FileChangedReloadingStrategy());
      String[] colors = config.getStringArray("colors.pie");
      for (int i=0;i<colors.length;i++)
      System.out.println(colors[i]);

      I am getting compile time error
      FileChangedReloadingStrategy cannot be resolved or is not a type

      if i comment out above line then its getting compiled and run propely.

      is it something i am missing or jar which i downloaded is not complete.

      Thanks
      Prashant

        Activity

        Henri Yandell made changes -
        Affects Version/s 1.0 Final [ 12311736 ]
        Henri Yandell made changes -
        Assignee Jakarta Commons Developers Mailing List [ commons-dev@jakarta.apache.org ]
        Key COM-1955 CONFIGURATION-69
        Project Commons [ 12310458 ] Commons Configuration [ 12310467 ]
        Affects Version/s 1.0 Final [ 12311651 ]
        Component/s Configuration [ 12311107 ]
        Henri Yandell made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 33953 12342107
        Hide
        Prashant added a comment -

        Hi
        Thanks for reply. So its only documentation error hmmm.
        The Example mentioned in the document is not applicable to 1.0 so i think that
        need to be mentioned on the example so that user can't get confuse.

        Thanks for reply.

        Thanks
        Prashant

        Show
        Prashant added a comment - Hi Thanks for reply. So its only documentation error hmmm. The Example mentioned in the document is not applicable to 1.0 so i think that need to be mentioned on the example so that user can't get confuse. Thanks for reply. Thanks Prashant
        Hide
        Oliver Heger added a comment -

        The class FileChangedReloadingStrategy is not part of the configuration 1.0 API,
        but of the further development. If you want to use it, you need a newer
        configuration jar, e.g. from the nightly builds.

        FileChangedReloadingStrategy will be contained in the 1.1 release, which
        hopefully comes out very soon.

        Hm, from our main site we link to different JavaDocs: the released 1.0 API and
        the latest (unreleased) development. Obviously this distinction is not clear
        enough, multiple users have been confused. Any ideas how to improve this?

        Show
        Oliver Heger added a comment - The class FileChangedReloadingStrategy is not part of the configuration 1.0 API, but of the further development. If you want to use it, you need a newer configuration jar, e.g. from the nightly builds. FileChangedReloadingStrategy will be contained in the 1.1 release, which hopefully comes out very soon. Hm, from our main site we link to different JavaDocs: the released 1.0 API and the latest (unreleased) development. Obviously this distinction is not clear enough, multiple users have been confused. Any ideas how to improve this?
        Hide
        Prashant added a comment -

        Created an attachment (id=14458)
        Error display in WSAD

        Show
        Prashant added a comment - Created an attachment (id=14458) Error display in WSAD
        Prashant created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Prashant
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development