Class SpringLoaderPlugin
java.lang.Object
org.pf4j.Plugin
com.netflix.spinnaker.kork.plugins.api.spring.PrivilegedSpringPlugin
com.netflix.spinnaker.kork.plugins.api.spring.SpringLoaderPlugin
Allows a plugin to scan packages for beans and load Spring Configurations.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.annotation.AnnotationConfigApplicationContextFields inherited from class org.pf4j.Plugin
log, wrapper -
Constructor Summary
ConstructorsConstructorDescriptionSpringLoaderPlugin(org.pf4j.PluginWrapper wrapper) Constructor to be used by plugin manager for plugin instantiation. -
Method Summary
Modifier and TypeMethodDescriptionSpecify plugin classes to register with the plugin context.Specify plugin packages to scan for beans.voidregisterBeanDefinitions(org.springframework.beans.factory.support.BeanDefinitionRegistry registry) Provides the opportunity to register bean definitions from the plugin into the application's registry.Methods inherited from class com.netflix.spinnaker.kork.plugins.api.spring.PrivilegedSpringPlugin
beanDefinitionFor, primaryBeanDefinitionFor, registerBeanMethods inherited from class org.pf4j.Plugin
delete, getWrapper, start, stop
-
Field Details
-
pluginContext
protected org.springframework.context.annotation.AnnotationConfigApplicationContext pluginContext
-
-
Constructor Details
-
SpringLoaderPlugin
public SpringLoaderPlugin(org.pf4j.PluginWrapper wrapper) Constructor to be used by plugin manager for plugin instantiation. Your plugins have to provide constructor with this exact signature to be successfully loaded by manager.- Parameters:
wrapper-
-
-
Method Details
-
registerBeanDefinitions
public void registerBeanDefinitions(org.springframework.beans.factory.support.BeanDefinitionRegistry registry) Description copied from class:PrivilegedSpringPluginProvides the opportunity to register bean definitions from the plugin into the application's registry.- Specified by:
registerBeanDefinitionsin classPrivilegedSpringPlugin
-
getPackagesToScan
Specify plugin packages to scan for beans. -
getClassesToRegister
Specify plugin classes to register with the plugin context.
-