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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
getBean(BeanProviderBound beanProviderBound)
Obtains the bean for the givenBeanProviderBound
.
-
-
-
Method Detail
-
getBean
Object getBean(BeanProviderBound beanProviderBound)
Obtains the bean for the givenBeanProviderBound
. Implementations of this method should retrieve the bean id from the BeanProviderBound using itsgetBeanId()
method.- Parameters:
beanProviderBound
- the BeanProviderBound to provide data for.- Returns:
- the bean, or null if the bean could not be retrieved.
-
-