Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Spring
Search Coderanch
Advance search
Google search
Register / Login
Win a copy of
Software Teaming: A Mob Programming, Whole-Team Approach
this week in the
Agile and Other Processes
forum!
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Ron McLeod
Tim Cooke
Liutauras Vilda
Jeanne Boyarsky
Sheriffs:
Paul Clapham
Rob Spoor
Junilu Lacar
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Piet Souris
Carey Brown
Bartenders:
Forum:
Spring
Passing in an empty String as a constructor arg value for a bean where the underlying property is an
Martijn Verburg
author
Posts: 3285
13
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi all,
I've got a bean, e.g.
<bean id="transformationExceptionDefinition" class="org.ikasan.framework.exception.user.ExternalExceptionDefinition"> <!-- user action --> <constructor-arg value="" /> </bean>
Where the corresponding class:
public ExternalExceptionDefinition(ExternalExceptionDefinition userAction) { this.userAction = userAction; }
and the ExternalExceptionDefinition class is an enum:
public enum ExternalUserAction { ACCEPT, REJECT, RETRY, ; private ExternalUserAction() { // default constructor } }
Does anyone know what the behaviour should be? We don't get any errors which surprises me.
Cheers, Martijn,
Twitter
.
Martijn Verburg
author
Posts: 3285
13
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Apparently it's null
Cheers, Martijn,
Twitter
.
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
?
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
use a bean with a constructor in spring
switch using enum : error !
Enum accessing PRoblem
Accessing external Spring config file from Plain Servlet
Define enum as Spring Bean and dependency inject it into another Spring Bean
More...