Interface BeanProvider

  • All Known Implementing Classes:
    WRepeater.WRepeatRoot
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface BeanProvider

    The BeanProvider interface can be implemented by applications to dynamically supply BeanProviderBound WComponents with the bean data they require, whenever they request it.

    The bean itself may be retrieved from any source, but using a caching DMS or the application cache is strongly advised if the bean is fetched from a remote source.

    Since:
    1.0.0
    Author:
    Yiannis Paschalidis
    • Method Detail

      • getBean

        Object getBean​(BeanProviderBound beanProviderBound)
        Obtains the bean for the given BeanProviderBound. Implementations of this method should retrieve the bean id from the BeanProviderBound using its getBeanId() method.
        Parameters:
        beanProviderBound - the BeanProviderBound to provide data for.
        Returns:
        the bean, or null if the bean could not be retrieved.