
io.permazen.cli.jshell.PermazenExecutionControlProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of permazen-cli Show documentation
Show all versions of permazen-cli Show documentation
Permazen classes supporting command line interfaces.
The newest version!
/*
* Copyright (C) 2015 Archie L. Cobbs. All rights reserved.
*/
package io.permazen.cli.jshell;
import io.permazen.util.ApplicationClassLoader;
import org.dellroad.jct.jshell.LocalContextExecutionControlProvider;
import org.dellroad.jct.jshell.MemoryLoaderDelegate;
import org.dellroad.stuff.java.MemoryClassLoader;
/**
* A {@link LocalContextExecutionControlProvider} that creates {@link PermazenExecutionControl}'s.
*/
public class PermazenExecutionControlProvider extends LocalContextExecutionControlProvider {
public static final String NAME = "permazen";
@Override
public String name() {
return NAME;
}
@Override
protected PermazenExecutionControl createLocalExecutionControl(MemoryLoaderDelegate delegate) {
return new PermazenExecutionControl(delegate);
}
@Override
protected MemoryClassLoader createMemoryClassLoader() {
return new MemoryClassLoader(ApplicationClassLoader.getInstance());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy