All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.webpieces.devrouter.impl.DevClassForName Maven / Gradle / Ivy

Go to download

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

There is a newer version: 2.1.1
Show newest version
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