Class BeansDropdownValuesProvider

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

    public class BeansDropdownValuesProvider
    extends java.lang.Object
    implements DropdownValuesProvider, org.springframework.context.ApplicationContextAware
    Implementation of DropdownValuesProvider. Provides all beans for given type.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.Object> getValues​(java.lang.String dropDownValueClassTypes)
      Returns values to be displayed in configurable dropdown.
      java.util.List<java.lang.Object> getValues​(java.lang.String dropDownValueClassTypes, java.util.Map<java.lang.String,​java.lang.String> options)
      Returns values to be displayed in configurable dropdown.
      protected java.lang.String resolveProviderName​(java.lang.String beanName)  
      void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)  
      • Methods inherited from class java.lang.Object

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

      • BeansDropdownValuesProvider

        public BeansDropdownValuesProvider()
    • Method Detail

      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
      • getValues

        public java.util.List<java.lang.Object> getValues​(java.lang.String dropDownValueClassTypes)
        Description copied from interface: DropdownValuesProvider
        Returns values to be displayed in configurable dropdown.
        Specified by:
        getValues in interface DropdownValuesProvider
        Parameters:
        dropDownValueClassTypes - - class type of values.
        Returns:
        List of values.
      • getValues

        public java.util.List<java.lang.Object> getValues​(java.lang.String dropDownValueClassTypes,
                                                          java.util.Map<java.lang.String,​java.lang.String> options)
        Description copied from interface: DropdownValuesProvider
        Returns values to be displayed in configurable dropdown.
        Specified by:
        getValues in interface DropdownValuesProvider
        Parameters:
        dropDownValueClassTypes - - class type of values. * @param options - dropdown options
        options - - dropdown options
        Returns:
        List of values.
      • resolveProviderName

        protected java.lang.String resolveProviderName​(java.lang.String beanName)