KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > springframework > samples > tiles > NewsFeedConfigurer


1 package org.springframework.samples.tiles;
2
3 import java.util.Properties JavaDoc;
4 import java.util.Set JavaDoc;
5
6 /**
7  * News feed configurator. See tiles-servlet.xml for more info.
8  *
9  * @author Alef Arendsen.
10  */

11 public class NewsFeedConfigurer {
12     
13     private Properties JavaDoc feeds;
14     
15     public void setFeeds(Properties JavaDoc feeds) {
16         this.feeds = feeds;
17     }
18     
19     public String JavaDoc feedUri(String JavaDoc feedName) {
20         return this.feeds.getProperty(feedName);
21     }
22     
23     public Set JavaDoc allNames() {
24         return this.feeds.keySet();
25     }
26
27 }
28
Popular Tags