PageRenderTime 91ms CodeModel.GetById 34ms app.highlight 2ms RepoModel.GetById 32ms app.codeStats 0ms

/simulatest-jee5/src/main/java/org/simulatest/jee5runner/environment/EnvironmentJEE5Factory.java

http://github.com/gabrielsuch/simulatest
Java | 15 lines | 11 code | 4 blank | 0 comment | 0 complexity | f3b6d4f8c4b41dfbba1f065576e7feff MD5 | raw file
 1package org.simulatest.jee5runner.environment;
 2
 3import org.simulatest.environment.environment.Environment;
 4import org.simulatest.environment.environment.EnvironmentDefinition;
 5import org.simulatest.environment.environment.EnvironmentFactory;
 6import org.simulatest.jee5runner.jee5.JEE5Context;
 7
 8public class EnvironmentJEE5Factory implements EnvironmentFactory {
 9	
10	@Override
11	public Environment create(EnvironmentDefinition definition) {
12		return (Environment) JEE5Context.lookup(definition.getEnvironmentClass());
13	}
14
15}