Class SpelBeanFactory

  • All Implemented Interfaces:
    java.util.EventListener, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>

    public class SpelBeanFactory
    extends java.lang.Object
    implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.BeanFactoryAware
    • Constructor Summary

      Constructors 
      Constructor Description
      SpelBeanFactory()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.springframework.context.ApplicationContext getApplicationContext()  
      protected org.springframework.beans.factory.config.ConfigurableListableBeanFactory getBeanFactory()  
      void onApplicationEvent​(org.springframework.context.event.ContextRefreshedEvent event)  
      void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)  
      void setBeanFactory​(org.springframework.beans.factory.BeanFactory beanFactory)  
      protected void setTargetClassForBean​(org.springframework.expression.ExpressionParser parser, org.springframework.expression.spel.support.StandardEvaluationContext context, java.lang.String beanName, org.springframework.beans.PropertyValue pv)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SpelBeanFactory

        public SpelBeanFactory()
    • Method Detail

      • onApplicationEvent

        public void onApplicationEvent​(org.springframework.context.event.ContextRefreshedEvent event)
        Specified by:
        onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
      • setTargetClassForBean

        protected void setTargetClassForBean​(org.springframework.expression.ExpressionParser parser,
                                             org.springframework.expression.spel.support.StandardEvaluationContext context,
                                             java.lang.String beanName,
                                             org.springframework.beans.PropertyValue pv)
      • getBeanFactory

        protected org.springframework.beans.factory.config.ConfigurableListableBeanFactory getBeanFactory()
      • setBeanFactory

        public void setBeanFactory​(org.springframework.beans.factory.BeanFactory beanFactory)
                            throws org.springframework.beans.BeansException
        Specified by:
        setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
        Throws:
        org.springframework.beans.BeansException
      • getApplicationContext

        protected org.springframework.context.ApplicationContext getApplicationContext()
      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
                                   throws org.springframework.beans.BeansException
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
        Throws:
        org.springframework.beans.BeansException