Details

    • Type: New Feature
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: core
    • Labels:
    • Similar Issues:

      Description

      Such feature would allow to have fluent code in tests or programmatic jenkins configuration. http://kostyasha.blogspot.com.by/2015/12/jenkins-fluent-classes.html

      Atm it not possible to have non-void setters because RequestImpl.class uses java.beans.PropertyDescriptor#getWriteMethod that follows java bean specification that say that setter should be void.

      PS. Spring AFAIK allows having non-void setters.

        Attachments

          Activity

          Show
          integer Kanstantsin Shautsou added a comment - Found that https://commons.apache.org/proper/commons-beanutils/apidocs/org/apache/commons/beanutils/package-summary.html#standard.customize allow customize it, https://commons.apache.org/proper/commons-beanutils/apidocs/org/apache/commons/beanutils/FluentPropertyBeanIntrospector.html appeared since 1.9 And as i see it stapler library question...
          Show
          integer Kanstantsin Shautsou added a comment - https://github.com/stapler/stapler/pull/81 https://github.com/jenkinsci/jenkins/pull/2588
          Hide
          integer Kanstantsin Shautsou added a comment -

          locally stapler test fails, so something changed and needs investigation.

          Show
          integer Kanstantsin Shautsou added a comment - locally stapler test fails, so something changed and needs investigation.

            People

            • Assignee:
              Unassigned
              Reporter:
              integer Kanstantsin Shautsou
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: