5 Replies Latest reply on Nov 25, 2008 6:42 AM by Kevin Conner

    fs-provider picking order

    amitai barnea Newbie

      hello,

      Can i control the picking order of the fs-provider/fs-listener?

      I want to read the files according to their creation time.

      thanks

        • 1. Re: fs-provider picking order
          Kevin Conner Master

          At the moment we have no support for orderings such as this.

          It would be possible to do this however, but you would need to create your own gateway by subclassing the FileGatewayListener and overriding the getFileList method.

          • 2. Re: fs-provider picking order
            Ryan Hochstetler Newbie

             

            "Kevin.Conner@jboss.com" wrote:
            At the moment we have no support for orderings such as this.

            It would be possible to do this however, but you would need to create your own gateway by subclassing the FileGatewayListener and overriding the getFileList method.


            FileGatewayListener.getFileList() has no access modifier, thus preventing override except within the same package.

            • 3. Re: fs-provider picking order
              Bernd Ruecker Master

               


              has no access modifier, thus preventing override


              One remark from me: I saw this already several times in the code. At some places it is quite hard to extend esb classes or to easily hook in own code (sometimes too restrictive access, sometimes static stuff, sometimes Singeltons, too wired code ;-), ...). It would be way easier to extend if the classes would be designed better with extension in mind...

              But that's just my two cents on code details. Direction and vision of the project is still great! :-)

              • 4. Re: fs-provider picking order
                Kevin Conner Master

                 

                "ryanhos" wrote:
                FileGatewayListener.getFileList() has no access modifier, thus preventing override except within the same package.

                Apologies, you are correct. These should never have been made packaga-private in the first place.

                • 5. Re: fs-provider picking order
                  Kevin Conner Master

                   

                  "camunda" wrote:
                  But that's just my two cents on code details. Direction and vision of the project is still great! :-)

                  We certainly agree with the comments about flexibility/extensibility and are bearing this in mind for future work.

                  If there are locations where you have specific need for the flexibility then please create a JIRA for these and we will get them addressed.