1 /*2 * EnvironmentFactory.java3 *4 * Created on December 15, 2003, 10:33 PM5 */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 can13 * extend this class and implement required methods and set their14 * class in environment variable ENVIRONMENT_FACTORY_CLASS. The15 * statis create method in this class reads the variable and16 * instantiates the class. Note that the implemented factory17 * needs a no arg constructor.18 *19 * @author sridatta20 */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