Package com.github.hypfvieh.classloader
Klasse ClassLoaderWithRegistry
java.lang.Object
java.lang.ClassLoader
com.github.hypfvieh.classloader.ClassLoaderWithRegistry
Custom classloader to register certain classes to ComponentRegistry.
- Autor:
- hypfvieh
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidaddExcludedClassName(String _excludedClassName) Add a class which should not be loaded with this classloader even if it is in 'includedPackages' List.voidaddIncludedPackageNames(String _packageName) Add a package name which should be loaded with this classloader.static Stringprotected Class<?> Von Klasse geerbte Methoden java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findClass, findLibrary, findLoadedClass, findResource, findResource, findResources, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
Konstruktordetails
-
ClassLoaderWithRegistry
-
ClassLoaderWithRegistry
public ClassLoaderWithRegistry()
-
-
Methodendetails
-
addIncludedPackageNames
Add a package name which should be loaded with this classloader.- Parameter:
_packageName- name of the package, has to end with '.'
-
addExcludedClassName
Add a class which should not be loaded with this classloader even if it is in 'includedPackages' List.- Parameter:
_excludedClassName- fqcn to exclude
-
loadClass
- Setzt außer Kraft:
loadClassin KlasseClassLoader- Löst aus:
ClassNotFoundException
-
getVersion
-