Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-5991

Introduce models which use Java 8 supplier/consumer

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 8.0.0-M1
    • Fix Version/s: 8.0.0-M1
    • Component/s: wicket
    • Labels:
      None

      Description

      Wicket should have IModel implementation which use Java 8 supplier/consumer, i.e. allow using method references / lambdas.

        Issue Links

          Activity

          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 6b23ce443fa7077b3078d5d662f543ab604730e3 in wicket's branch refs/heads/master from Sven Meier
          [ https://git-wip-us.apache.org/repos/asf?p=wicket.git;h=6b23ce4 ]

          WICKET-5991 check args on null

          Show
          jira-bot ASF subversion and git services added a comment - Commit 6b23ce443fa7077b3078d5d662f543ab604730e3 in wicket's branch refs/heads/master from Sven Meier [ https://git-wip-us.apache.org/repos/asf?p=wicket.git;h=6b23ce4 ] WICKET-5991 check args on null
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 038ea517c5f1ab4428072ce3a5eab5bc1c173e6f in wicket's branch refs/heads/master from Sven Meier
          [ https://git-wip-us.apache.org/repos/asf?p=wicket.git;h=038ea51 ]

          WICKET-5991 assert for null model object

          Show
          jira-bot ASF subversion and git services added a comment - Commit 038ea517c5f1ab4428072ce3a5eab5bc1c173e6f in wicket's branch refs/heads/master from Sven Meier [ https://git-wip-us.apache.org/repos/asf?p=wicket.git;h=038ea51 ] WICKET-5991 assert for null model object
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 0ac5c90f274e9496ecac8dd5705d64987000282b in wicket's branch refs/heads/master from Sven Meier
          [ https://git-wip-us.apache.org/repos/asf?p=wicket.git;h=0ac5c90 ]

          WICKET-5991 allow LambdaModel to be used read-only with functionr too

          Show
          jira-bot ASF subversion and git services added a comment - Commit 0ac5c90f274e9496ecac8dd5705d64987000282b in wicket's branch refs/heads/master from Sven Meier [ https://git-wip-us.apache.org/repos/asf?p=wicket.git;h=0ac5c90 ] WICKET-5991 allow LambdaModel to be used read-only with functionr too
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 822dfd05f420bd20200dce7fa3a634bff9b75d69 in wicket's branch refs/heads/master from Sven Meier
          [ https://git-wip-us.apache.org/repos/asf?p=wicket.git;h=822dfd0 ]

          WICKET-5991 allow LambdaModel to be used with function and biconsumer too

          Show
          jira-bot ASF subversion and git services added a comment - Commit 822dfd05f420bd20200dce7fa3a634bff9b75d69 in wicket's branch refs/heads/master from Sven Meier [ https://git-wip-us.apache.org/repos/asf?p=wicket.git;h=822dfd0 ] WICKET-5991 allow LambdaModel to be used with function and biconsumer too
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit e6851acc7ba32a1689869c82279fb77f465f0cae in wicket's branch refs/heads/master from Martin Grigorov
          [ https://git-wip-us.apache.org/repos/asf?p=wicket.git;h=e6851ac ]

          WICKET-5991 Introduce models which use Java 8 supplier/consumer

          Add serializable BiConsumer

          Show
          jira-bot ASF subversion and git services added a comment - Commit e6851acc7ba32a1689869c82279fb77f465f0cae in wicket's branch refs/heads/master from Martin Grigorov [ https://git-wip-us.apache.org/repos/asf?p=wicket.git;h=e6851ac ] WICKET-5991 Introduce models which use Java 8 supplier/consumer Add serializable BiConsumer
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 9ce6d42f71d48c77843a13435c6534fe3f2f748d in wicket's branch refs/heads/master from Martin Grigorov
          [ https://git-wip-us.apache.org/repos/asf?p=wicket.git;h=9ce6d42 ]

          WICKET-5991 Introduce models which use Java 8 supplier/consumer

          Remove SupplierModel.
          IModel is a @FunctionalInterface now and covers the use cases

          Show
          jira-bot ASF subversion and git services added a comment - Commit 9ce6d42f71d48c77843a13435c6534fe3f2f748d in wicket's branch refs/heads/master from Martin Grigorov [ https://git-wip-us.apache.org/repos/asf?p=wicket.git;h=9ce6d42 ] WICKET-5991 Introduce models which use Java 8 supplier/consumer Remove SupplierModel. IModel is a @FunctionalInterface now and covers the use cases
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit a63005d560063955030b4106f8bcfd221edc6738 in wicket's branch refs/heads/lambdas from Martin Grigorov
          [ https://git-wip-us.apache.org/repos/asf?p=wicket.git;h=a63005d ]

          WICKET-5991 Introduce models which use Java 8 supplier/consumer

          Minor improvements

          Show
          jira-bot ASF subversion and git services added a comment - Commit a63005d560063955030b4106f8bcfd221edc6738 in wicket's branch refs/heads/lambdas from Martin Grigorov [ https://git-wip-us.apache.org/repos/asf?p=wicket.git;h=a63005d ] WICKET-5991 Introduce models which use Java 8 supplier/consumer Minor improvements
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 9c793be2974eaaf4268f853a24b76af598a3d170 in wicket's branch refs/heads/lambdas from Martin Grigorov
          [ https://git-wip-us.apache.org/repos/asf?p=wicket.git;h=9c793be ]

          WICKET-5991 Introduce models which use Java 8 supplier/consumer

          Minor improvements

          Show
          jira-bot ASF subversion and git services added a comment - Commit 9c793be2974eaaf4268f853a24b76af598a3d170 in wicket's branch refs/heads/lambdas from Martin Grigorov [ https://git-wip-us.apache.org/repos/asf?p=wicket.git;h=9c793be ] WICKET-5991 Introduce models which use Java 8 supplier/consumer Minor improvements
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 414fc134cf719941bca6ed3e61e70c55d3b2f163 in wicket's branch refs/heads/lambdas from Martin Grigorov
          [ https://git-wip-us.apache.org/repos/asf?p=wicket.git;h=414fc13 ]

          WICKET-5991 Introduce models which use Java 8 supplier/consumer

          Add:

          • LambdaModel - a model with supplier and consumer (dual to Model)
          • SupplierModel - a read-only model that uses a Supplier to provide the object (dual to AbstractReadOnlyModel)
          • SupplierCachingModel - a read-only model that uses a Supplier to provide the object. Caches the result until detached. (dual to LoadableDetachableModel)
          Show
          jira-bot ASF subversion and git services added a comment - Commit 414fc134cf719941bca6ed3e61e70c55d3b2f163 in wicket's branch refs/heads/lambdas from Martin Grigorov [ https://git-wip-us.apache.org/repos/asf?p=wicket.git;h=414fc13 ] WICKET-5991 Introduce models which use Java 8 supplier/consumer Add: LambdaModel - a model with supplier and consumer (dual to Model) SupplierModel - a read-only model that uses a Supplier to provide the object (dual to AbstractReadOnlyModel) SupplierCachingModel - a read-only model that uses a Supplier to provide the object. Caches the result until detached. (dual to LoadableDetachableModel)
          Hide
          mgrigorov Martin Grigorov added a comment -

          TODO: Add entry to the migration guide

          Show
          mgrigorov Martin Grigorov added a comment - TODO: Add entry to the migration guide
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 9c793be2974eaaf4268f853a24b76af598a3d170 in wicket's branch refs/heads/master from Martin Grigorov
          [ https://git-wip-us.apache.org/repos/asf?p=wicket.git;h=9c793be ]

          WICKET-5991 Introduce models which use Java 8 supplier/consumer

          Minor improvements

          Show
          jira-bot ASF subversion and git services added a comment - Commit 9c793be2974eaaf4268f853a24b76af598a3d170 in wicket's branch refs/heads/master from Martin Grigorov [ https://git-wip-us.apache.org/repos/asf?p=wicket.git;h=9c793be ] WICKET-5991 Introduce models which use Java 8 supplier/consumer Minor improvements
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 414fc134cf719941bca6ed3e61e70c55d3b2f163 in wicket's branch refs/heads/master from Martin Grigorov
          [ https://git-wip-us.apache.org/repos/asf?p=wicket.git;h=414fc13 ]

          WICKET-5991 Introduce models which use Java 8 supplier/consumer

          Add:

          • LambdaModel - a model with supplier and consumer (dual to Model)
          • SupplierModel - a read-only model that uses a Supplier to provide the object (dual to AbstractReadOnlyModel)
          • SupplierCachingModel - a read-only model that uses a Supplier to provide the object. Caches the result until detached. (dual to LoadableDetachableModel)
          Show
          jira-bot ASF subversion and git services added a comment - Commit 414fc134cf719941bca6ed3e61e70c55d3b2f163 in wicket's branch refs/heads/master from Martin Grigorov [ https://git-wip-us.apache.org/repos/asf?p=wicket.git;h=414fc13 ] WICKET-5991 Introduce models which use Java 8 supplier/consumer Add: LambdaModel - a model with supplier and consumer (dual to Model) SupplierModel - a read-only model that uses a Supplier to provide the object (dual to AbstractReadOnlyModel) SupplierCachingModel - a read-only model that uses a Supplier to provide the object. Caches the result until detached. (dual to LoadableDetachableModel)
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit aa10baf63e782a67ffadb30fec82c429a3b4805f in wicket's branch refs/heads/lambdas from Martin Grigorov
          [ https://git-wip-us.apache.org/repos/asf?p=wicket.git;h=aa10baf ]

          WICKET-5991 Introduce models which use Java 8 supplier/consumer

          Add:

          • LambdaModel - a model with supplier and consumer (dual to Model)
          • SupplierModel - a read-only model that uses a Supplier to provide the object (dual to AbstractReadOnlyModel)
          • SupplierCachingModel - a read-only model that uses a Supplier to provide the object. Caches the result until detached. (dual to LoadableDetachableModel)
          Show
          jira-bot ASF subversion and git services added a comment - Commit aa10baf63e782a67ffadb30fec82c429a3b4805f in wicket's branch refs/heads/lambdas from Martin Grigorov [ https://git-wip-us.apache.org/repos/asf?p=wicket.git;h=aa10baf ] WICKET-5991 Introduce models which use Java 8 supplier/consumer Add: LambdaModel - a model with supplier and consumer (dual to Model) SupplierModel - a read-only model that uses a Supplier to provide the object (dual to AbstractReadOnlyModel) SupplierCachingModel - a read-only model that uses a Supplier to provide the object. Caches the result until detached. (dual to LoadableDetachableModel)

            People

            • Assignee:
              mgrigorov Martin Grigorov
              Reporter:
              mgrigorov Martin Grigorov
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development