This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

AnnouncementAnnouncement Module

Collapse

No announcement yet.

Configuring ResponderCommandFactory with array of classesPage Title Module

The issue is that the <array> XML results in an array of strings, and not an array of classes, as the function expects.

Is there (concise) context XML syntax that would configure an array of classes?
It looks like there isn't and the work-around for configuring a ResponderCommandFactory is to extend the Spring Cairngorm AS class with a custom class, and adding a method that accepts an array of strings, converting it into an array of classes.

Should the ResponderCommandFactory provide such a method?

In contrast, an object property value is conveniently type-converted into a Class if the object property is typed as Class, e.g.

Comment

We've been using SAS 0.8.1 successfully to date. I've just started to use SAS 1.1 instead, and ran into something weird: all <array> elements with more than one <value> fail schema validation. For example, the attached sample document fails validation in 1.1 at the second <value> in both <array>s:

Code:

cvc-complex-type.2.4.d: Invalid content was found starting with element 'value'. No child element is expected at this point.