Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Plugins: Relocate plugin activate() method to Activator class, add simpler search method #3720
This pays some technical debt from the early days of writing the plugin system. At first, Activators were bare structs, containers for data with no behavior. It was the registry's job to find activators, and then activate them.
Over time, those two operations fell into a clear pattern: search the registry for an activator using certain criteria, take the first match, and then pass its ids to Registry to have it activated. That was silly, since you already had an Activator object as the result of the first search.