1 17 package org.apache.servicemix.jbi.container; 18 19 import java.io.File ; 20 21 import org.apache.servicemix.jbi.util.FileUtil; 22 23 public class ServiceAssemblyEnvironment { 24 25 private File rootDir; 26 private File installDir; 27 private File susDir; 28 private File stateFile; 29 30 public ServiceAssemblyEnvironment() { 31 } 32 33 36 public File getInstallDir() { 37 return installDir; 38 } 39 40 43 public void setInstallDir(File installRoot) { 44 this.installDir = installRoot; 45 } 46 47 50 public File getSusDir() { 51 return susDir; 52 } 53 54 57 public void setSusDir(File susRoot) { 58 this.susDir = susRoot; 59 } 60 61 64 public File getStateFile() { 65 return stateFile; 66 } 67 68 71 public void setStateFile(File stateFile) { 72 this.stateFile = stateFile; 73 } 74 75 78 public File getRootDir() { 79 return rootDir; 80 } 81 82 85 public void setRootDir(File rootDir) { 86 this.rootDir = rootDir; 87 } 88 89 public File getServiceUnitDirectory(String componentName, String suName) { 90 File compDir = FileUtil.getDirectoryPath(susDir, componentName); 91 File suDir = FileUtil.getDirectoryPath(compDir, suName); 92 return suDir; 93 } 94 95 } 96 | Popular Tags |