Class SpringLoaderBeanPostProcessor

java.lang.Object
cn.sliew.carp.framework.pf4j.spring.SpringLoaderBeanPostProcessor
All Implemented Interfaces:
org.springframework.beans.factory.config.BeanPostProcessor

public class SpringLoaderBeanPostProcessor extends Object implements org.springframework.beans.factory.config.BeanPostProcessor
Promotes ExposeToApp and RestControllers from a plugin to the application's context.
  • Constructor Details

    • SpringLoaderBeanPostProcessor

      public SpringLoaderBeanPostProcessor(org.springframework.context.support.GenericApplicationContext pluginContext, BeanPromoter beanPromoter)
      bean post processor
      Parameters:
      pluginContext - plugin context
      beanPromoter - bean promoter
  • Method Details

    • postProcessAfterInitialization

      public Object postProcessAfterInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
      Specified by:
      postProcessAfterInitialization in interface org.springframework.beans.factory.config.BeanPostProcessor
      Throws:
      org.springframework.beans.BeansException