Interface ELBeanProvider
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Provides the instances the functions declared on beans are invoked on.
A function declared with @ELFunctions on a class with public instance methods is invoked on an
instance of the class, which the expression obtains from its jakarta.el.ELContext: the instance
registered with putContext(type, instance), or, failing that, the one a provider registered with
putContext(ELBeanProvider.class, provider) returns. A Micronaut application registers its bean context,
context.putContext(ELBeanProvider.class, beanContext::getBean), so that any bean can declare
functions.
- Since:
- 1.0
- Author:
- Denis Stepanov
-
Method Summary
-
Method Details
-
get
- Type Parameters:
T- The type of the bean- Parameters:
type- The type of the bean- Returns:
- The instance
-