[jboss-jira] [JBoss JIRA] Commented: (JBSEAM-356) Session bean assertions
Gavin King (JIRA)
jira-events at jboss.com
Thu Sep 28 12:47:41 EDT 2006
[ http://jira.jboss.com/jira/browse/JBSEAM-356?page=comments#action_12344234 ]
Gavin King commented on JBSEAM-356:
-----------------------------------
Can also do it for method calls:
@NotNull public String doSomething(@NotNull parameter) { .... }
> Session bean assertions
> -----------------------
>
> Key: JBSEAM-356
> URL: http://jira.jboss.com/jira/browse/JBSEAM-356
> Project: JBoss Seam
> Issue Type: Feature Request
> Components: Core
> Reporter: Gavin King
>
> For people who like more of a design-by-contract style, we could let you specify Hibernate Validator annotations on the session bean, and check them after @PostConstruct and before and after each business method.
> eg.
> @Stateful
> public class Foo {
> @NotNull private Bar bar;
> @Min(0) int count;
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list