Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose the plugin framework in the managed package #704

Open
jongpie opened this issue Jun 25, 2024 · 0 comments
Open

Expose the plugin framework in the managed package #704

jongpie opened this issue Jun 25, 2024 · 0 comments
Labels
Feature: Plugin Framework Items related to Nebula Logger's plugin framework Package Type: Managed Package Issues and enhancements that specifically apply to the managed package Type: Enhancement New feature or request

Comments

@jongpie
Copy link
Owner

jongpie commented Jun 25, 2024

Currently, the plugin framework is only available in the unlocked package - since managed packages have strict rules about what changes can be made to existing global Apex classes, the framework was intentionally excluded from the managed package to make it easier to change the framework later. The current plugin framework is v2/the second framework implementation, so the original concern with adding it to the managed package was that the framework might need to change again..... but no major changes have been made to the framework in about 2 years, so it seems stable now.

To expose the plugin framework, there are a couple of changes needed:

  • Change the Apex class LoggerPlugin to be global
  • Change the interfaces LoggerPlugin.Batchable and LoggerPlugin.Triggerable to be global
  • Update LoggerPlugin__mdt to change <visibility>Protected</visibility> to <visibility>Public</visibility>

Some test plugins need to then be created that use the managed package to validate that the managed package can, in fact, successfully use the plugin framework.

@jongpie jongpie added Type: Enhancement New feature or request Package Type: Managed Package Issues and enhancements that specifically apply to the managed package Feature: Plugin Framework Items related to Nebula Logger's plugin framework labels Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature: Plugin Framework Items related to Nebula Logger's plugin framework Package Type: Managed Package Issues and enhancements that specifically apply to the managed package Type: Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant