java.lang.Object
org.apache.wicket.spring.FieldBeansCollector
Convenience class to extract information about the type and generics of a field to inject.
The field is a List, a Map or a Set and the generic type of its elements is extracted as well
- Author:
- Tobias Soloschenko, Andrea Del Bene
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionFieldBeansCollector
(org.springframework.core.ResolvableType fieldResolvableType) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds compatible bean to the field.Returns an instance containing all the beans collected for the field and compatible with the type of the field.
-
Constructor Details
-
FieldBeansCollector
-
-
Method Details
-
getBeansToInject
Returns an instance containing all the beans collected for the field and compatible with the type of the field.- Returns:
- the instance to inject into the field.
-
addBean
Adds compatible bean to the field. This means that the field type is Map, a List or a Set and that the given bean is compatible with its elements type.- Parameters:
beanName
- the name of the bean to injectbean
- the bean to inject
-
getFieldType
-