Java Reflection Class Loader

Java examples for Reflection:Class Loader

Description

Click the following links for the tutorial for Reflection and Class Loader.

  1. Loads a resource from the context class loader or, if that fails, from the default class loader.
  2. Retrieves the resource as an input stream via the context class loader of the current thread, and if not found, via the class loaders of the optionally specified classes in the order of their specification, and if not found, from the class loader of ClassLoaderHelper as the last resort.
  3. Retrieves the resource via the context class loader of the current thread, and if not found, via the class loaders of the optionally specified classes in the order of their specification, and if not found, from the class loader of ClassLoaderHelper as the last resort.
  4. Loads a class starting from the given class loader (can be null, then use default class loader)
  5. Returns the context class loader.
  6. Returns the given loader or the sytem classloader if loader is null
  7. Loads the class via the optionally specified classes in the order of their specification, and if not found, via the context class loader of the current thread, and if not found, from the caller class loader as the last resort.
  8. load Class Via Classes


  9. load Class Via Context
  10. load Class
  11. Return the default ClassLoader to use: typically the thread context ClassLoader, if available; the ClassLoader that loaded the ClassUtils class will be used as fallback.
  12. get Absolute Path for class loader
  13. This is a convenience method to load a resource as a stream.
  14. Scans all classes accessible from the context class loader which belong to the given package and subpackages.
  15. get Class Loader
  16. find By Package via class loader


  17. Load a resource from the classpath, first trying the thread context class loader, then the class loader of the given class.
  18. Iterates through all resources in current thread's ClassLoader and searches for .class files, then attempts to parse the class name from file name, and find the Class object.
  19. Appends a directory or jar to the system class loader.
  20. Scans all classes accessible from the context class loader which belong to the given package and sub packages.
  21. Creates a reader for reading the specified class loader resource.
  22. Class new Instance
  23. get Class Instance
  24. Returns an instance of the given class name, by calling the default constructor.
  25. Method used to check is some class exists at JVM.
  26. Method used to return some class that exists at JVM.
  27. Recursive method used to find all classes in a given directory and subdirs.
  28. find Classes in directory
  29. get Class Execute Path
  30. This function finds the first matching filename for a Java class file from the classpath, if none is found it returns null.
  31. find Class In Dir
  32. deregister Driver From Classloader
  33. This method returns a new ClassLoader object that can be used to load classes from files contained by the specified directory.