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. Scans all classes accessible from the context class loader which belong to the given package and subpackages.
  18. Load a resource from the classpath, first trying the thread context class loader, then the class loader of the given class.
  19. 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.
  20. Appends a directory or jar to the system class loader.
  21. Scans all classes accessible from the context class loader which belong to the given package and sub packages.
  22. Scans all classes accessible from the context class loader which belong to the given package and subpackages.
  23. Creates a reader for reading the specified class loader resource.
  24. Class new Instance
  25. get Class Instance
  26. Returns an instance of the given class name, by calling the default constructor.
  27. Method used to check is some class exists at JVM.
  28. Method used to return some class that exists at JVM.
  29. Recursive method used to find all classes in a given directory and subdirs.
  30. find Classes in directory
  31. get Class Execute Path
  32. This function finds the first matching filename for a Java class file from the classpath, if none is found it returns null.
  33. find Class In Dir