Package io.github.connellite.jcl.context
Class DefaultContextLoader
- java.lang.Object
-
- io.github.connellite.jcl.context.DefaultContextLoader
-
- All Implemented Interfaces:
JclContextLoader
public class DefaultContextLoader extends Object implements JclContextLoader
This class is builds the context from a single JCL instance. This should be used if a single JarClassLoader is instantiated programmatically.- Author:
- Kamran
-
-
Constructor Summary
Constructors Constructor Description DefaultContextLoader(JarClassLoader jcl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidloadContext()Loads a single JCL instance in contextvoidunloadContext()Clears the context
-
-
-
Constructor Detail
-
DefaultContextLoader
public DefaultContextLoader(JarClassLoader jcl)
-
-
Method Detail
-
loadContext
public void loadContext()
Loads a single JCL instance in context- Specified by:
loadContextin interfaceJclContextLoader- See Also:
JclContextLoader.loadContext()
-
unloadContext
public void unloadContext()
Description copied from interface:JclContextLoaderClears the context- Specified by:
unloadContextin interfaceJclContextLoader
-
-