1 20 package org.apache.cactus.integration.ant.container; 21 22 import java.io.File ; 23 24 import org.apache.cactus.integration.ant.deployment.DeployableFile; 25 import org.apache.cactus.integration.ant.util.AntTaskFactory; 26 import org.apache.commons.logging.Log; 27 import org.apache.tools.ant.types.Path; 28 import org.apache.tools.ant.types.Environment.Variable; 29 30 36 public class ContainerWrapper implements Container 37 { 38 39 41 44 private Container container; 45 46 48 53 public ContainerWrapper(Container theContainer) 54 { 55 if (theContainer == null) 56 { 57 throw new NullPointerException ("'theContainer' must not be null"); 58 } 59 this.container = theContainer; 60 } 61 62 64 67 public String getName() 68 { 69 return container.getName(); 70 } 71 72 75 public String getTestContext() 76 { 77 return this.container.getTestContext(); 78 } 79 80 83 public long getStartUpWait() 84 { 85 return container.getStartUpWait(); 86 } 87 88 91 public int getPort() 92 { 93 return this.container.getPort(); 94 } 95 96 99 public File getToDir() 100 { 101 return this.container.getToDir(); 102 } 103 104 107 public Variable[] getSystemProperties() 108 { 109 return this.container.getSystemProperties(); 110 } 111 112 115 public void init() 116 { 117 this.container.init(); 118 } 119 120 123 public boolean isEnabled() 124 { 125 return this.container.isEnabled(); 126 } 127 128 131 public boolean isExcluded(String theTestName) 132 { 133 return this.container.isExcluded(theTestName); 134 } 135 136 139 public void startUp() 140 { 141 this.container.startUp(); 142 } 143 144 147 public void shutDown() 148 { 149 this.container.shutDown(); 150 } 151 152 155 public void setAntTaskFactory(AntTaskFactory theFactory) 156 { 157 this.container.setAntTaskFactory(theFactory); 158 } 159 160 163 public void setLog(Log theLog) 164 { 165 this.container.setLog(theLog); 166 } 167 168 171 public void setDeployableFile(DeployableFile theWarFile) 172 { 173 this.container.setDeployableFile(theWarFile); 174 } 175 176 179 public void setSystemProperties(Variable[] theProperties) 180 { 181 this.container.setSystemProperties(theProperties); 182 } 183 184 188 public void setContainerClasspath(Path theClasspath) 189 { 190 this.container.setContainerClasspath(theClasspath); 191 } 192 193 197 public Path getContainerClasspath() 198 { 199 return this.container.getContainerClasspath(); 200 } 201 } 202 | Popular Tags |