[jboss-cvs] jboss-seam/examples/blog/src/actions ...
Gavin King
gavin.king at jboss.com
Thu Nov 16 22:00:16 EST 2006
User: gavin
Date: 06/11/16 22:00:16
Modified: examples/blog/src/actions BlogService.java
EntryAction.java LoginAction.java PostAction.java
Log:
slight cleanup
Revision Changes Path
1.5 +1 -2 jboss-seam/examples/blog/src/actions/BlogService.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: BlogService.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/blog/src/actions/BlogService.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- BlogService.java 24 Oct 2006 14:30:12 -0000 1.4
+++ BlogService.java 17 Nov 2006 03:00:16 -0000 1.5
@@ -20,8 +20,7 @@
public class BlogService
{
- @In(create=true)
- private EntityManager entityManager;
+ @In EntityManager entityManager;
@Unwrap
public Blog getBlog()
1.12 +2 -4 jboss-seam/examples/blog/src/actions/EntryAction.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: EntryAction.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/blog/src/actions/EntryAction.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -b -r1.11 -r1.12
--- EntryAction.java 30 Sep 2006 19:59:34 -0000 1.11
+++ EntryAction.java 17 Nov 2006 03:00:16 -0000 1.12
@@ -20,11 +20,9 @@
@Scope(STATELESS)
public class EntryAction
{
- @In(create=true)
- private Blog blog;
+ @In(create=true) Blog blog;
- @Out
- private BlogEntry blogEntry;
+ @Out BlogEntry blogEntry;
public void loadBlogEntry(String id) throws EntryNotFoundException
{
1.5 +4 -8 jboss-seam/examples/blog/src/actions/LoginAction.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: LoginAction.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/blog/src/actions/LoginAction.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- LoginAction.java 17 Nov 2006 02:49:03 -0000 1.4
+++ LoginAction.java 17 Nov 2006 03:00:16 -0000 1.5
@@ -3,8 +3,6 @@
import java.io.IOException;
import java.io.Serializable;
-import org.hibernate.validator.Length;
-import org.hibernate.validator.NotNull;
import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.In;
import org.jboss.seam.annotations.Name;
@@ -17,14 +15,12 @@
@Scope(ScopeType.SESSION)
public class LoginAction implements Serializable
{
- @In(create=true) private Blog blog;
-
- @NotNull @Length(min=5, max=50)
- private String password;
+ @In(create=true) Blog blog;
@In FacesMessages facesMessages;
- private boolean loggedIn;
+ String password;
+ boolean loggedIn;
public String login() throws IOException
{
1.8 +4 -4 jboss-seam/examples/blog/src/actions/PostAction.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: PostAction.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/blog/src/actions/PostAction.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- PostAction.java 30 Sep 2006 19:59:34 -0000 1.7
+++ PostAction.java 17 Nov 2006 03:00:16 -0000 1.8
@@ -22,11 +22,11 @@
@Scope(ScopeType.STATELESS)
public class PostAction
{
- @In(create=true) private Blog blog;
- @In(create=true) private EntityManager entityManager;
+ @In(create=true) Blog blog;
- @In(required=false)
- private BlogEntry blogEntry;
+ @In EntityManager entityManager;
+
+ @In(required=false) BlogEntry blogEntry;
public String post() throws IOException
{
More information about the jboss-cvs-commits
mailing list