Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright 2014-2014 The Kuali Foundation Licensed under the Educational Community License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.opensource.org/licenses/ecl2.php Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
 
 package org.kuali.common.core.system;
 
 import static com.google.common.collect.Lists.newArrayList;
 
 import java.io.File;
 import java.util.List;
 
 
 
 @JsonDeserialize(builder = Java.Builder.class)
 public final class Java {
 
 	private final File home;
 	private final File tmpDir;
 	private final String classVersion;
 	private final ImmutableList<Fileclasspath;
 	private final ImmutableList<FilelibraryPaths;
 	private final ImmutableList<FileextensionDirs;
 	private final RuntimeEnvironment runtime;
 	private final VirtualMachine vm;
 
 	private Java(Builder builder) {
 		this. = builder.home;
 		this. = builder.tmpDir;
 		this. = builder.classVersion;
 		this. = ImmutableList.copyOf(builder.classpath);
 		this. = ImmutableList.copyOf(builder.libraryPaths);
 		this. = ImmutableList.copyOf(builder.extensionDirs);
 		this. = builder.runtime;
 		this. = builder.vm;
 	}
 
 	public static class Builder extends ValidatingBuilder<Java> {
 
 		private File home;
 		private File tmpDir;
 		private String classVersion;
 		private List<Fileclasspath = newArrayList();
 		private List<FilelibraryPaths = newArrayList();
 		private List<FileextensionDirs = newArrayList();
 
 		private VirtualMachine vm;
 
 		public Builder withHome(File home) {
 			this. = home;
 			return this;
 		}
 
 		public Builder withTmpDir(File tmpDir) {
 			this. = tmpDir;
 			return this;
 		}
 
 		public Builder withClassVersion(String classVersion) {
 			this. = classVersion;
 			return this;
 		}
 
 		public Builder withClasspath(List<Fileclasspath) {
 			this. = classpath;
 			return this;
 		}
 
 		public Builder withLibraryPaths(List<FilelibraryPaths) {
 			this. = libraryPaths;
 			return this;
 		}
 
 		public Builder withExtensionDirs(List<FileextensionDirs) {
 			this. = extensionDirs;
 			return this;
 		}
 
 		public Builder withRuntime(RuntimeEnvironment runtime) {
 			this. = runtime;
 			return this;
 		}
 
		public Builder withVm(VirtualMachine vm) {
			this. = vm;
			return this;
		}
		public Java build() {
			return validate(new Java(this));
		}
	}
	public File getHome() {
		return ;
	}
	public File getTmpDir() {
		return ;
	}
	public String getClassVersion() {
		return ;
	}
	public List<FilegetClasspath() {
		return ;
	}
	public List<FilegetLibraryPaths() {
		return ;
	}
	public List<FilegetExtensionDirs() {
	}
		return ;
	}
	public VirtualMachine getVm() {
		return ;
	}
New to GrepCode? Check out our FAQ X