KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > j2biz > blogunity > render > BlogunityRenderEngine


1 /*
2  * $Id: BlogunityRenderEngine.java,v 1.1 2004/11/24 18:36:23 michelson Exp $
3  *
4  * Copyright (c) 2004 j2biz Group, http://www.j2biz.com Koeln / Duesseldorf ,
5  * Germany
6  *
7  * @author Max Kalina
8  *
9  *
10  * This program is free software; you can redistribute it and/or modify it under
11  * the terms of the GNU General Public License as published by the Free Software
12  * Foundation; either version 2 of the License, or (at your option) any later
13  * version.
14  *
15  * This program is distributed in the hope that it will be useful, but WITHOUT
16  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
17  * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
18  * details.
19  *
20  * You should have received a copy of the GNU General Public License along with
21  * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
22  * Place, Suite 330, Boston, MA 02111-1307 USA
23  *
24  */

25
26 package com.j2biz.blogunity.render;
27
28 import org.radeox.api.engine.context.InitialRenderContext;
29 import org.radeox.engine.BaseRenderEngine;
30
31 import com.j2biz.blogunity.pojo.Blog;
32 import com.j2biz.blogunity.pojo.User;
33
34 public class BlogunityRenderEngine extends BaseRenderEngine {
35
36     /**
37      * @param context
38      */

39     public BlogunityRenderEngine(InitialRenderContext context) {
40         super(context);
41     }
42
43     /**
44      *
45      */

46     public BlogunityRenderEngine() {
47         super();
48     }
49
50     public BlogunityRenderEngine(Blog blog, String JavaDoc webappName, User user) {
51         super();
52         initialContext.set("blog", blog);
53         initialContext.set("webappName", webappName);
54         initialContext.set("user", user);
55     }
56
57     public void setBlog(Blog blog) {
58         initialContext.set("blog", blog);
59     }
60
61     public void setWebappName(String JavaDoc webappName) {
62         initialContext.set("webappName", webappName);
63     }
64
65     public void setUser(User user) {
66         initialContext.set("user", user);
67     }
68
69 }
Popular Tags