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 Summary
ConstructorsConstructorDescriptionSpringLoaderBeanPostProcessor(org.springframework.context.support.GenericApplicationContext pluginContext, BeanPromoter beanPromoter) bean post processor -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.config.BeanPostProcessor
postProcessBeforeInitialization
-
Constructor Details
-
SpringLoaderBeanPostProcessor
public SpringLoaderBeanPostProcessor(org.springframework.context.support.GenericApplicationContext pluginContext, BeanPromoter beanPromoter) bean post processor- Parameters:
pluginContext- plugin contextbeanPromoter- bean promoter
-
-
Method Details
-
postProcessAfterInitialization
public Object postProcessAfterInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException - Specified by:
postProcessAfterInitializationin interfaceorg.springframework.beans.factory.config.BeanPostProcessor- Throws:
org.springframework.beans.BeansException
-