When an application based on a NetBeans platform is run, the platform's Main class is run. It then finds the available plug-ins and builds an in-memory registry of them, and performs any tasks they specify for startup. Generally, a plug-in's code is loaded into memory as it is needed.