i.RunnableFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of javaee-rt Show documentation
Show all versions of javaee-rt Show documentation
An Execution Environment for Java SCOREs
package i;
import java.lang.invoke.MethodHandle;
import java.lang.invoke.MethodHandles;
import p.score.InternalRunnable;
public final class RunnableFactory {
private final MethodHandles.Lookup lookup;
private final MethodHandle target;
public RunnableFactory(MethodHandles.Lookup lookup, MethodHandle target) {
this.lookup = lookup;
this.target = target;
}
public s.java.lang.Runnable instantiate() {
return InternalRunnable.createRunnable(this.lookup, this.target);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy