KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > config > backup > appserver > EnvironmentFactory


1 /*
2  * EnvironmentFactory.java
3  *
4  * Created on December 15, 2003, 10:33 PM
5  */

6
7 package com.sun.enterprise.config.backup.appserver;
8
9 import com.sun.enterprise.config.backup.pluggable.BackupSynchronizer;
10
11 /**
12  * provides a basic implementation of factory. Users can
13  * extend this class and implement required methods and set their
14  * class in environment variable ENVIRONMENT_FACTORY_CLASS. The
15  * statis create method in this class reads the variable and
16  * instantiates the class. Note that the implemented factory
17  * needs a no arg constructor.
18  *
19  * @author sridatta
20  */

21 public class EnvironmentFactory extends
22     com.sun.enterprise.config.backup.pluggable.EnvironmentFactory {
23     
24  /* protected BackupEnvironment createBackupEnvironment() {
25         return new DefaultBackupEnvironment();
26     }
27     
28     protected ActiveAssistance createActiveAssistance() {
29         return new DefaultActiveAssistance();
30     }
31    
32   */

33         
34     protected BackupSynchronizer getOfflineBackupSynchronizer() {
35         return new OfflineBackupSynchronizer();
36     }
37     
38     protected BackupSynchronizer getOnlineBackupSynchronizer() {
39         return new OnlineBackupSynchronizer();
40     }
41 }
42
Popular Tags