Class PrivilegedSpringPlugin
- java.lang.Object
-
- org.pf4j.Plugin
-
- com.netflix.spinnaker.kork.plugins.api.spring.PrivilegedSpringPlugin
-
- Direct Known Subclasses:
SpringLoaderPlugin
@Beta public abstract class PrivilegedSpringPlugin extends org.pf4j.PluginAllows a plugin to register BeanDefinitions to be loaded in the application SpringApplicationContext.This can be used in plugins that want to wire themselves into the application's Spring Context.
-
-
Constructor Summary
Constructors Constructor Description PrivilegedSpringPlugin(org.pf4j.PluginWrapper wrapper)Constructor to be used by plugin manager for plugin instantiation.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected org.springframework.beans.factory.config.BeanDefinitionbeanDefinitionFor(java.lang.Class beanClass)protected org.springframework.beans.factory.config.BeanDefinitionprimaryBeanDefinitionFor(java.lang.Class beanClass)protected voidregisterBean(org.springframework.beans.factory.config.BeanDefinition beanDefinition, org.springframework.beans.factory.support.BeanDefinitionRegistry registry)abstract voidregisterBeanDefinitions(org.springframework.beans.factory.support.BeanDefinitionRegistry registry)Provides the opportunity to register bean definitions from the plugin into the application's registry.
-
-
-
Method Detail
-
registerBeanDefinitions
public abstract void registerBeanDefinitions(org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
Provides the opportunity to register bean definitions from the plugin into the application's registry.- Parameters:
registry-
-
beanDefinitionFor
protected org.springframework.beans.factory.config.BeanDefinition beanDefinitionFor(java.lang.Class beanClass)
-
primaryBeanDefinitionFor
protected org.springframework.beans.factory.config.BeanDefinition primaryBeanDefinitionFor(java.lang.Class beanClass)
-
registerBean
protected void registerBean(org.springframework.beans.factory.config.BeanDefinition beanDefinition, org.springframework.beans.factory.support.BeanDefinitionRegistry registry) throws java.lang.ClassNotFoundException- Throws:
java.lang.ClassNotFoundException
-
-