![]() ![]() A browser can load applets from different web pages using separate class loaders. ![]() There are more concrete examples where custom class loaders might come in handy.īrowsers, for instance, use a custom class loader to load executable content from a website. This can be done either through URL class loader (load jars via URLs) or custom class loaders. Implementing a class versioning mechanism while loading different bytecodes for classes with same names and packages.e.g in JDBC, switching between different driver implementations is done through dynamic class loading. Creating classes dynamically suited to the user's needs.Helping in modifying the existing bytecode, e.g.Custom class loaders are helpful for more than just loading the class during runtime, a few use cases might include:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |