[seam-commits] Seam SVN: r9091 - in trunk/examples/rss: src/org/jboss/seam/rss and 1 other directory.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Mon Sep 22 04:46:51 EDT 2008
Author: danielc.roth
Date: 2008-09-22 04:46:50 -0400 (Mon, 22 Sep 2008)
New Revision: 9091
Removed:
trunk/examples/rss/dist/
trunk/examples/rss/exploded-archives/
Modified:
trunk/examples/rss/
trunk/examples/rss/src/org/jboss/seam/rss/RSSTest.java
Log:
Property changes on: trunk/examples/rss
___________________________________________________________________
Name: svn:ignore
+ test-build
Modified: trunk/examples/rss/src/org/jboss/seam/rss/RSSTest.java
===================================================================
--- trunk/examples/rss/src/org/jboss/seam/rss/RSSTest.java 2008-09-22 08:17:27 UTC (rev 9090)
+++ trunk/examples/rss/src/org/jboss/seam/rss/RSSTest.java 2008-09-22 08:46:50 UTC (rev 9091)
@@ -1,37 +1,49 @@
package org.jboss.seam.rss;
import java.util.ArrayList;
+import java.util.Date;
import java.util.List;
+import java.util.UUID;
import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.Create;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;
- at Name("rssTest")
+ at Name("rss")
@Scope(ScopeType.SESSION)
public class RSSTest
{
private Feed feed;
- private List<Entry> entries;
@Create
public void create()
{
feed = new Feed();
- entries = new ArrayList<Entry>();
- for (int i = 0; i < 5; i++) {
+ List<Entry> entries = new ArrayList<Entry>();
+ for (int i = 0; i < 5; i++)
+ {
Entry entry = new Entry();
+ entry.setAuthor("Author " + i);
+ entry.setLink("Link " + i);
+ entry.setPublished(new Date(0));
+ entry.setSummary("Summary " + 1);
+ entry.setTitle("Title " + 1);
+ entry.setUid(UUID.randomUUID().toString());
+ entry.setUpdated(new Date());
entries.add(entry);
}
+ feed.setEntries(entries);
+ feed.setLink("Link Feed");
+ feed.setSubtitle("Subtitle feed");
+ feed.setTitle("Title Feed");
+ feed.setUid(UUID.randomUUID().toString());
+ feed.setUpdated(new Date());
}
-
- public Feed getFeed() {
+
+ public Feed getFeed()
+ {
return feed;
}
-
- public List<Entry> getEntries() {
- return entries;
- }
}
More information about the seam-commits
mailing list