I am writing plugin for nexus oss. I am having the privilege to call my class by any name while creating plugin. I am new to java so forgive me if my question is weird.
If name can be anything, how are they instantiating my class?
In my plugin the class starts like:
public class HelloWorldPlexusResource
extends AbstractPlexusResource
implements PlexusResource
Even when I was writing plugin for jenkins I had the same doubt. the class started just like:
public class HelloWorldBuilder extends Builder
Example: jenkins plugin
Again how will they call my class in runtime when my class name can be anything? Is the system scanning for classes that extends a particular class? if so how is it done? But this too needs instantiation right? (not sure).
If possible please also direct me some java reading on this.