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.services.factorymanager;
21
22 import org.apache.pluto.factory.Factory;
23 import org.apache.pluto.portalImpl.services.Service;
24
25 /***
26 * Manages the life-time of factories registered during container startup.
27 * A service has to derive from {@link Factory} and implement the
28 * <CODE>init()</CODE> and <CODE>destroy()</CODE> methods as appropriate.
29 *
30 * @see Factory
31 */
32 public abstract class FactoryManagerService
33 extends Service
34 implements org.apache.pluto.services.factory.FactoryManagerService
35 {
36
37
38
39
40 /***
41 ** Returns the service implementation for the given service class, or
42 ** <CODE>null</CODE> if no such service is registered.
43 **
44 ** @param theClass
45 ** the service class
46 **
47 ** @return the service implementation
48 **/
49
50 public abstract Factory getFactory (Class theClass);
51
52 }