S - the type of the script.S - the type of the instance to provide.public class CachedScriptClassInstancePovider<S,T> extends Object
| Constructor and Description |
|---|
CachedScriptClassInstancePovider(org.openksavi.sponge.engine.Engine engine,
Function<String,S> createScriptFunction,
String format,
BiFunction<S,Class<T>,T> createInstanceFunction) |
| Modifier and Type | Method and Description |
|---|---|
protected S |
createScript(String className) |
void |
invalidate() |
T |
newInstance(String className,
Class<T> javaClass) |
Copyright © 2016–2017 Softelnet. All rights reserved.