Atavism Version 2018.1AGIS API

atavism.server.marshalling
Class MarshallingClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by atavism.server.marshalling.MarshallingClassLoader

public class MarshallingClassLoader
extends java.lang.ClassLoader

Provide a class loader that invokes InjectionGenerator to add marshalling methods to the environment. The class loader is careful to only refer the MarshallingRuntime using reflection methods, to avoid having loading the class loader itself causing loading of server classes before the MarshallingRuntime is initialized.


Field Summary
static java.lang.String[] ignoredPackages
           
 
Constructor Summary
MarshallingClassLoader(java.lang.ClassLoader parent)
           
 
Method Summary
protected  java.lang.Class<?> loadClass(java.lang.String className, boolean resolve)
           
protected  java.lang.Class loadClassWithoutInjection(java.lang.String className)
           
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ignoredPackages

public static java.lang.String[] ignoredPackages
Constructor Detail

MarshallingClassLoader

public MarshallingClassLoader(java.lang.ClassLoader parent)
Method Detail

loadClass

protected java.lang.Class<?> loadClass(java.lang.String className,
                                       boolean resolve)
                                throws java.lang.ClassNotFoundException
Overrides:
loadClass in class java.lang.ClassLoader
Throws:
java.lang.ClassNotFoundException

loadClassWithoutInjection

protected java.lang.Class loadClassWithoutInjection(java.lang.String className)
                                             throws java.lang.ClassNotFoundException
Throws:
java.lang.ClassNotFoundException


Copyright © 2018 Dragonsan Studios Sp. z o.o.