KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > server > AbstractServerFactory


1 /*
2  * All content copyright (c) 2003-2007 Terracotta, Inc., except as may otherwise be noted in a separate copyright
3  * notice. All rights reserved.
4  */

5 package com.tc.server;
6
7 import com.tc.config.schema.setup.L2TVSConfigurationSetupManager;
8 import com.tc.lang.TCThreadGroup;
9 import com.tc.util.factory.AbstractFactory;
10
11 public abstract class AbstractServerFactory extends AbstractFactory {
12   private static String JavaDoc FACTORY_SERVICE_ID = "com.tc.server.ServerFactory";
13   private static Class JavaDoc STANDARD_SERVER_FACTORY_CLASS = StandardServerFactory.class;
14   
15   public static AbstractServerFactory getFactory() {
16     return (AbstractServerFactory)getFactory(FACTORY_SERVICE_ID, STANDARD_SERVER_FACTORY_CLASS);
17   }
18
19   public abstract TCServer createServer(L2TVSConfigurationSetupManager configurationSetupManager,
20                                         TCThreadGroup threadGroup);
21 }
22
Popular Tags