1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.apache.pluto.services.factory;
21
22 import org.apache.pluto.PortletContainerServices;
23 import org.apache.pluto.factory.Factory;
24
25 /***
26 ** The static accessor for the <CODE>FactoryManagerService</CODE>.
27 **
28 ** @see FactoryManagerService
29 **/
30
31 public class FactoryManager
32 {
33
34
35 public static Factory getFactory (Class theClass)
36 {
37 return getService().getFactory(theClass);
38 }
39
40 private static FactoryManagerService getService()
41 {
42 return(FactoryManagerService)PortletContainerServices.get(FactoryManagerService.class);
43 }
44 }