]
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: