1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.apache.pluto.portalImpl.om;
21
22 import org.apache.pluto.om.*;
23
24 public class ControllerFactoryImpl implements ControllerFactory
25 {
26
27
28
29 public void init(javax.servlet.ServletConfig config,
30 java.util.Map properties) throws Exception
31 {
32 }
33
34
35
36 public void destroy() throws Exception
37 {
38 }
39
40 public Controller get(Model model)
41 {
42 if (model instanceof org.apache.pluto.portalImpl.om.common.impl.UnmodifiableSet)
43 {
44 model = (Model)((org.apache.pluto.portalImpl.om.common.impl.UnmodifiableSet)model).getModifiableSet();
45 }
46 return (Controller)model;
47 }
48
49 }