01: /* Copyright 2004 The JA-SIG Collaborative. All rights reserved.
02: * See license distributed with this file and
03: * available online at http://www.uportal.org/license.html
04: */
05:
06: package org.jasig.portal.container.factory;
07:
08: import java.util.Map;
09:
10: import javax.servlet.ServletConfig;
11:
12: import org.apache.pluto.om.Controller;
13: import org.apache.pluto.om.ControllerFactory;
14: import org.apache.pluto.om.Model;
15:
16: /**
17: * Implementation of Apache Pluto ControllerFactory.
18: * @author Ken Weiner, kweiner@unicon.net
19: * @version $Revision: 34757 $
20: */
21: public class ControllerFactoryImpl implements ControllerFactory {
22:
23: private ServletConfig servletConfig = null;
24: private Map properties = null;
25:
26: // ControllerFactory methods
27:
28: public Controller get(Model model) {
29: return (Controller) model;
30: }
31:
32: // Factory methods
33:
34: public void init(ServletConfig config, Map properties)
35: throws Exception {
36: this .servletConfig = config;
37: this .properties = properties;
38: }
39:
40: public void destroy() throws Exception {
41:
42: }
43:
44: }
|