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
24 import org.apache.pluto.factory.Factory;
25
26 /***
27 ** The static accessor for the <CODE>FactoryManagerService</CODE>.
28 **
29 ** @see FactoryManagerService
30 **/
31
32 public class FactoryManager
33 {
34
35
36 public static Factory getFactory (Class theClass)
37 {
38 return getService().getFactory(theClass);
39 }
40
41 private static FactoryManagerService getService()
42 {
43 return(FactoryManagerService)PortletContainerServices.get(FactoryManagerService.class);
44 }
45 }