-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
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:
final Jenkins jenkins = new RtJenkins("...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(final Project project : 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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels