I'm developing a Managed Package and would like to write a static class with a corresponding method that takes a collection of SObject records (can be of varying SObjectTypes) as the argument, and produces a list of records always of a specific SObjectType if conditions are met (e.x. will always be Custom_Object__c).
The objects that will invoke / call the static class method are going to be determined by configuration based records that admins add to the system.
For example they may specify that Leads, Opportunities, and Accounts make trigger the class method. However, this will always be dependent on the objects in the tenant org.
Without adding object specific triggers in the package, is there any recommended way to dynamically have these specified objects call my class method? I know packages like DLRS dynamically generate triggers in Production environments, but I'm wary of that approach and would like to see if there's a better path.