Hi developers, GSoC mentors and students like me, I met some questions reading the codebase of external-workspace-manager-plugin, and they should appear in other jenkins plugins as well. So these are quite general and I wonder they might help students like me understand jenkins better. Hope someone can answer them and welcome to post your questions under this. The source code is : https://github.com/jenkinsci/external-workspace-manager-plugin
supposing we are under working directory : external-workspace-manager-plugin/src/main/java/org/jenkinsci/plugins/ewm QUESTION 1 : in file ~/definitions/Disk.java The Disk class is a concrete class, but now I want to change it to a base class so I there can be more disk types with specific targets. What should I do to turn it into a base class properly ? for example : should I keep the @DataBoundConstructor annotations on the constructor ? Should I move the nested static descriptor class outside the origin class(since we declared a final attribute, which make it non-abstract) ? QUESTION 2 : in file ~/DiskInfoProviderDescriptor.java line 23 How to analyze this line : public DiskInfoProviderDescriptor(Class<? extends DiskInfoProvider> clazz) {super(clazz);} This is a more Java language problem. Why would we need derived class' metadata passed to the Descriptor<DiskInfoProvider> (or when is this constructor called) ? Thanks ! Yufei Zhang -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/8c78d8ff-7bbb-4e39-be8f-98b632fdbd4b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.