Class FixedBeanResolver

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.expression.BeanResolver

    public class FixedBeanResolver
    extends java.lang.Object
    implements org.springframework.expression.BeanResolver, org.springframework.context.ApplicationContextAware
    Bean resolver which provide access to beans configured in Spring Application Context AND specified in availableBeanNames property.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object resolve​(org.springframework.expression.EvaluationContext context, java.lang.String beanName)  
      void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)  
      void setAvailableBeanNames​(java.util.List<java.lang.String> availableBeanNames)  
      • Methods inherited from class java.lang.Object

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

      • FixedBeanResolver

        public FixedBeanResolver()
    • Method Detail

      • resolve

        public java.lang.Object resolve​(org.springframework.expression.EvaluationContext context,
                                        java.lang.String beanName)
                                 throws org.springframework.expression.AccessException
        Specified by:
        resolve in interface org.springframework.expression.BeanResolver
        Throws:
        org.springframework.expression.AccessException
      • setAvailableBeanNames

        public void setAvailableBeanNames​(java.util.List<java.lang.String> availableBeanNames)
        Parameters:
        availableBeanNames - restrict available bean names
      • 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