Package io.jmix.core
Class JmixModulesAwareBeanSelector
java.lang.Object
io.jmix.core.JmixModulesAwareBeanSelector
@Component("core_JmixModulesAwareBeanSelector")
public class JmixModulesAwareBeanSelector
extends Object
Helps to select a bean that belongs to the lower module in the hierarchy of
@JmixModule dependencies (where
core is on top and an application is at bottom).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TselectFrom(Collection<T> beans) Returns a bean that belongs to the lower module in the hierarchy of@JmixModuledependencies.
-
Constructor Details
-
JmixModulesAwareBeanSelector
public JmixModulesAwareBeanSelector()
-
-
Method Details
-
selectFrom
Returns a bean that belongs to the lower module in the hierarchy of@JmixModuledependencies.- Parameters:
beans- collection of beans to select from- Returns:
- a bean instance or null if the input collection is empty
-