1 package org.kuali.common.deploy.appserver.tomcat; 2 3 import org.kuali.common.util.Assert; 4 5 public final class TomcatContext { 6 7 private final TomcatDirs dirs; 8 9 public static class Builder { 10 11 private final TomcatDirs dirs; 12 13 public Builder(TomcatDirs dirs) { 14 this.dirs = dirs; 15 } 16 17 public TomcatContext build() { 18 Assert.noNulls(dirs); 19 return new TomcatContext(this); 20 } 21 22 } 23 24 private TomcatContext(Builder builder) { 25 this.dirs = builder.dirs; 26 } 27 28 public TomcatDirs getDirs() { 29 return dirs; 30 } 31 32 }