T - the type of the instance to provide.public class SimpleScriptClassInstancePovider<T> extends Object implements ScriptClassInstanceProvider<T>
| Constructor and Description |
|---|
SimpleScriptClassInstancePovider(SpongeEngine engine,
Function<String,T> createInstanceFunction) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
T |
newInstance(String className,
Class<T> javaClass) |
public SimpleScriptClassInstancePovider(SpongeEngine engine, Function<String,T> createInstanceFunction)
public T newInstance(String className, Class<T> javaClass)
newInstance in interface ScriptClassInstanceProvider<T>public void clear()
clear in interface ScriptClassInstanceProvider<T>Copyright © 2016–2018 Softelnet. All rights reserved.