You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No Builders, no Service classes or 'Context' objects. I would suggest you make all classes package protected and let the user see only one class, the entry point. Ideally, this is how I should use your client:
finalJenkinsjenkins = newRtJenkins("...apitoken");//"Rt" from "RESTful" or "Runtime"jenkins.projects().search("my-project").build();
Where, of course, .projects() returns an instance of Projects which, among others, extends Iterable<Project>, so I could iterate all the Projects in jenkins like this:
for(finalProjectproject : jenkins.projects()) {
//do something with them.
}
The above is just my opinion, since I've developed quite a few wrappers in this encapsulated and fluent fashion and it seems to work just fine. For an example, see docker-java-api.
The text was updated successfully, but these errors were encountered:
No Builders, no Service classes or 'Context' objects. I would suggest you make all classes package protected and let the user see only one class, the entry point. Ideally, this is how I should use your client:
Where, of course,
.projects()
returns an instance ofProjects
which, among others, extendsIterable<Project>
, so I could iterate all the Projects in jenkins like this:The above is just my opinion, since I've developed quite a few wrappers in this encapsulated and fluent fashion and it seems to work just fine. For an example, see docker-java-api.
The text was updated successfully, but these errors were encountered: