org.webpieces.devrouter.impl.DevClassForName Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of http-router-dev Show documentation
Show all versions of http-router-dev Show documentation
Library that swaps out specific http-router components to be able to compile code on any request that has changed for use in development servers
package org.webpieces.devrouter.impl;
import javax.inject.Inject;
import org.webpieces.compiler.api.CompileOnDemand;
import org.webpieces.router.impl.hooks.ClassForName;
public class DevClassForName implements ClassForName {
private CompileOnDemand compileOnDemand;
@Inject
public DevClassForName(CompileOnDemand compile) {
this.compileOnDemand = compile;
}
@Override
public Class> clazzForName(String moduleName) {
return compileOnDemand.loadClass(moduleName);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy