Core Components of PF4J-Spring
masterPF4J-Spring provides several key components to bridge PF4J extensions with the Spring Framework:
SpringPluginManager: APluginManagerthat is aware of the Spring context.SpringPlugin: The base class your plugin must extend if it contains Spring beans.ExtensionsInjector: Responsible for exposing PF4J extensions as Spring beans.SpringExtensionFactory: AnExtensionFactoryused in yourPluginManagerto handleSpringPlugininstances. It creates a new extension instance for every request.SingletonSpringExtensionFactory: An alternative toSpringExtensionFactorythat returns a specific singleton instance. You can optionally specify which extension classes should be treated as singletons.