You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This would create a hard reference to the class being bypassed, so typos would no longer be a possibility and the bypasses could be updated or removed when renaming or deleting a trigger handler.
Storing bypassed handlers as Types instead of Strings might not be a bad idea as well, though it wouldn't be entirely necessary for the public bypass APIs.
The text was updated successfully, but these errors were encountered:
It would be helpful to be able to specify a bypass by passing in a Type rather than a String.
Examples:
TriggerHandler.bypass(AccountTriggerHandler.class);
TriggerHandler.clearBypass(AccountTriggerHandler.class);
TriggerHandler.isBypassed(AccountTriggerHandler.class);
This would create a hard reference to the class being bypassed, so typos would no longer be a possibility and the bypasses could be updated or removed when renaming or deleting a trigger handler.
Storing bypassed handlers as Types instead of Strings might not be a bad idea as well, though it wouldn't be entirely necessary for the public bypass APIs.
The text was updated successfully, but these errors were encountered: