Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BeanListFactoryBean does not have "lists" property #22

Open
Ray-C opened this issue Jul 12, 2016 · 1 comment
Open

BeanListFactoryBean does not have "lists" property #22

Ray-C opened this issue Jul 12, 2016 · 1 comment
Assignees

Comments

@Ray-C
Copy link

Ray-C commented Jul 12, 2016

Tried to configure spring-plug bean, BeanListFactoryBean, as per example in introduction. It seems there is no "lists" property in this bean (couldn't see it in the source either). The resultant exception is this:

SEVERE: Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.plugin.core.support.BeanListFactoryBean#0' defined in class path resource [plugins-config-host.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'lists' of bean class [org.springframework.plugin.core.support.BeanListFactoryBean]: Bean property 'lists' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter? at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1512) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1220) ...

@odrotbohm
Copy link
Member

Looks like the reference docs are out of date slightly. The property to configure is type taking a fully-qualified class name directly. Generally speaking we're recommending to use the XML namespace or the annotation these days.

Also, the BeanListFactoryBean is kind of obsolete these days as the container supports ordering beans injected via a List out of the box.

@odrotbohm odrotbohm self-assigned this Aug 16, 2016
@odrotbohm odrotbohm added this to the 1.3.0 milestone Aug 16, 2016
@odrotbohm odrotbohm removed this from the 1.3.0 milestone Sep 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants