Package manifold.internal.host
Class RuntimeManifoldHost
- java.lang.Object
-
- manifold.api.service.BaseService
-
- manifold.internal.host.AbstractManifoldHost
-
- manifold.internal.host.SingleModuleManifoldHost
-
- manifold.internal.host.RuntimeManifoldHost
-
- All Implemented Interfaces:
IManifoldHost,IRuntimeManifoldHost,IPluginHost,IService
public class RuntimeManifoldHost extends SingleModuleManifoldHost implements IRuntimeManifoldHost
-
-
Constructor Summary
Constructors Constructor Description RuntimeManifoldHost()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidbootstrap()voidbootstrap(List<File> sourcepath, List<File> classpath)Bootstrap Manifold before application code executesstatic IRuntimeManifoldHostclear()protected List<IDirectory>createDefaultClassPath()static IRuntimeManifoldHostget()voidinit(List<File> sourcepath, List<File> classpath)Initialize host and its type manifolds.protected voidinitDirectly(List<File> sourcepath, List<File> classpath)Initialize the host and its type loaders using specified sourcepath and classpath.booleanisBootstrapped()Is Manifold bootstrapped?-
Methods inherited from class manifold.internal.host.SingleModuleManifoldHost
addTypeSystemListenerAsWeakRef, createdType, getFileSystem, getJavaParser, getSingleModule
-
Methods inherited from class manifold.internal.host.AbstractManifoldHost
getActualClassLoader, getClassLoaderForFile, isPathIgnored
-
Methods inherited from class manifold.api.service.BaseService
doInit, doUninit, init, isInited, uninit
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface manifold.api.host.IManifoldHost
addTypeSystemListenerAsWeakRef, createdType, getActualClassLoader, getArrayTypeName, getClassLoaderForFile, getFileSystem, getJavaParser, getSingleModule, isPathIgnored
-
Methods inherited from interface manifold.api.service.IPluginHost
getInterface
-
Methods inherited from interface manifold.api.host.IRuntimeManifoldHost
preBootstrap
-
-
-
-
Method Detail
-
get
public static IRuntimeManifoldHost get()
-
clear
public static IRuntimeManifoldHost clear()
-
bootstrap
public static void bootstrap()
-
isBootstrapped
public boolean isBootstrapped()
Description copied from interface:IRuntimeManifoldHostIs Manifold bootstrapped?- Specified by:
isBootstrappedin interfaceIRuntimeManifoldHost
-
bootstrap
public void bootstrap(List<File> sourcepath, List<File> classpath)
Description copied from interface:IRuntimeManifoldHostBootstrap Manifold before application code executes- Specified by:
bootstrapin interfaceIRuntimeManifoldHost
-
init
public void init(List<File> sourcepath, List<File> classpath)
Initialize host and its type manifolds. Includes classpath from the host's classloader in addition to provided classpath.- Parameters:
sourcepath- List of paths containing sources/resourcesclasspath- List of paths comprising the classpath- See Also:
initDirectly(List, List)
-
initDirectly
protected void initDirectly(List<File> sourcepath, List<File> classpath)
Initialize the host and its type loaders using specified sourcepath and classpath.- Parameters:
sourcepath- List of paths containing sources/resourcesclasspath- List of paths comprising the classpath
-
createDefaultClassPath
protected List<IDirectory> createDefaultClassPath()
-
-