View Javadoc

1   /*
2    * joey-rt and its relative products are published under the terms
3    * of the Apache Software License.
4    * 
5    * Created on 2004/12/05 15:38:35
6    */
7   package org.asyrinx.joey.tapestry.page.impl;
8   
9   import org.asyrinx.brownie.core.collection.ClassKeyHashMap;
10  import org.asyrinx.brownie.core.collection.ClassKeyMap;
11  import org.asyrinx.joey.tapestry.page.EntityPageDictionary;
12  
13  /***
14   * @author takeshi
15   */
16  public class BasicEntityPageDictionary implements EntityPageDictionary {
17  
18      /***
19       *  
20       */
21      public BasicEntityPageDictionary() {
22          super();
23      }
24  
25      private final ClassKeyMap classKeyMap = new ClassKeyHashMap();
26  
27      public void put(Class entityClass, String pageName) {
28          classKeyMap.put(entityClass, pageName);
29      }
30  
31      public String getPageName(Class entityClass) {
32          return (String) classKeyMap.get(entityClass);
33      }
34  
35  }