1 26 package org.objectweb.openccm.descriptor.softpkg.ccm; 27 28 import java.net.ServerSocket ; 29 30 import org.objectweb.openccm.descriptor.ZipEntryRetriever; 31 import org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.base.DeploymentLogger; 32 import org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.base.ErrorManager; 33 import org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.base.InitializationError; 34 import org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.base.RootDeployerContext; 35 import org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.installer.DestinationDeployerFactory; 36 37 44 public class SoftpkgRootDeployerContext 45 extends RootDeployerContext 46 { 47 48 private RootDeployerContext globalDeployerContext; 54 70 public void 71 initialize() 72 throws InitializationError 73 { 74 76 } 77 78 81 public void 82 connectGlobalDeployerContext(RootDeployerContext context) 83 { 84 globalDeployerContext = context; 85 } 86 87 public RootDeployerContext 88 getGlobalDeployerContext() 89 { 90 return globalDeployerContext; 91 } 92 93 94 public String 95 convertSymbol(String ch) 96 { 97 return getGlobalDeployerContext().convertSymbol(ch); 98 } 99 100 101 104 public DeploymentLogger 105 getDeploymentLogger() 106 { 107 if(super.getDeploymentLogger()==null) 108 super.connectDeploymentLogger 109 (getGlobalDeployerContext().getDeploymentLogger()); 110 return super.getDeploymentLogger(); 111 } 112 113 114 117 public DestinationDeployerFactory 118 getDestinationDeployerFactory() 119 { 120 if(super.getDestinationDeployerFactory()==null) 121 super.connectDestinationDeployerFactory 122 (getGlobalDeployerContext().getDestinationDeployerFactory()); 123 return super.getDestinationDeployerFactory(); 124 } 125 126 127 130 public ErrorManager 131 getErrorManager() 132 { 133 if(super.getErrorManager()==null) 134 super.connectErrorManager 135 (getGlobalDeployerContext().getErrorManager()); 136 return super.getErrorManager(); 137 } 138 139 140 public ServerSocket 141 getServerSocket() 142 { 143 if(super.getServerSocket()==null) 145 super.connectServerSocket 146 (getGlobalDeployerContext().getServerSocket()); 147 return super.getServerSocket(); 148 } 149 150 151 public ZipEntryRetriever 152 getZipEntryRetriever() 153 { 154 if(super.getZipEntryRetriever()==null) 155 super.connectZipEntryRetriever 156 (getGlobalDeployerContext().getZipEntryRetriever()); 157 return super.getZipEntryRetriever(); 158 } 159 160 public void 161 connectZipEntryRetriever(ZipEntryRetriever zipEntryRetriever) 162 { 163 super.connectZipEntryRetriever(zipEntryRetriever); 164 } 165 166 167 168 } 169 | Popular Tags |