KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > dwr > SessionCreator


1 /*
2  * Copyright (c) 2005 Your Corporation. All Rights Reserved.
3  */

4 package dwr;
5
6 import uk.ltd.getahead.dwr.Creator;
7
8 import org.w3c.dom.Element JavaDoc;
9
10 /**
11  * @author hengels
12  * @version $Revision: 1.1 $
13  */

14 public class SessionCreator implements Creator
15 {
16     private Object JavaDoc callable;
17
18     public SessionCreator(Object JavaDoc callable) {
19         this.callable = callable;
20     }
21
22     public void init(Element JavaDoc config) {
23     }
24
25     public Class JavaDoc getType() {
26         return callable.getClass();
27     }
28
29     public Object JavaDoc getInstance() {
30         return callable;
31     }
32 }
33
Popular Tags