Skip to main content

Kenyth Zeng's Library tagged classloader   View Popular

08 Dec 09

重温java之classloader体系结构(含hotswap) - Java - JavaEye论坛

  • 使用线程上下文类加载器, 可以在执行线程中, 抛弃双亲委派加载链模式, 使用线程上下文里的类加载器加载类.
  • 典型的例子有, 通过线程上下文来加载第三方库jndi实现, 而不依赖于双亲委派.


    大部分java app服务器(jboss, tomcat..)也是采用contextClassLoader来处理web服务。

  • 1 more annotations...

MY(a)ware: Java ClassLoading

  • For every request the PHP page is reloaded and until the release of PHP5 there wasn't the concept of Web Application as there is in JEE. The better that could be done was to do little low level unportable tricks like using memory sharing APIs. And even compiled PHP had to be reloaded every time.

InfoQ: JavaRebel: Dynamic Classloading in the JVM

  • JavaRebel brings Ruby and PHP style dynamic reloading of classes to Java.
  • This includes adding and removing both methods and fields and the only forbidden changes are to ‘extends’ and ‘implements’ clauses
06 Nov 09

Class Loading in Java: Time to Add Dynamicity? | Javalobby

  • But not everything can be reloaded by JavaRebel: No reloads with class hierarchy change are possible.
  • 8 more annotations...

How JavaRebel Saves Development Time | Javalobby

  • When debugging through my code in Eclipse, it’s nice to make a change and see that reflected in the running instance straight away with HotSwap.
  • I’ve often wondered why this is the case with Java when dynamic languages and .NET can handle this quickly. 

  • 8 more annotations...

JRebel FAQ | ZeroTurnaround.com

  • without having to restart the
    container or redeploy the application.
  • It does not create any new class loaders,
    instead, it
    extends the existing ones with the ability to manage reloaded classes.
  • 3 more annotations...
05 Nov 09

Javassist - JBoss Community

Javassist (Java programming assistant) is a load-time reflective system for Java. It is a class library for editing bytecodes in Java;
it enables Java programs to define a new class at runtime and to modify a class file before the JVM loads it. Unlike other similar systems,
Javassist provides source-level abstraction; programmers can modify a class file without detailed knowledge of the Java bytecode.

www.jboss.org/javassist - Preview

Javassit bytecode aop class opensource classloader

  • it enables Java programs to define a new class at runtime and to modify a class file before the JVM loads it.
  • Javassist provides source-level abstraction; programmers can modify a class file without detailed knowledge of the Java bytecode.
  • 2 more annotations...
04 Nov 09

Understanding Network Class Loaders

  • The mechanism that enabled such dynamic loading is a class loader, which is one of the cornerstones of Java dynamism.
  • The process of combining the code into an executable native code is called linking - the merging of separately compiled code with shared library code to create an executable application.
  • 6 more annotations...

Serialization - transient / network class loader

i am serializing an object on a local machine.
send it over a socket to remote machine.
remote machine de-serializes.
it needs the classes to de-serialize.
calls back to the local machine.
gets the classes.

forums.sun.com/thread.jspa - Preview

serialization classloader network discussion starred

  • i am serializing an object on a local machine.

    send it over a socket to remote machine.

    remote machine de-serializes.

    it needs the classes to de-serialize.

    calls back to the local machine.

    gets the classes.
  • By the class loader. The class loader doesn't care about 'transient'. The receiver will still need those classes if it uses that field. The class loader can't assume that it won't do that. So it loads the classes of the transient objects. Just like it loads the superclasses, and the classes of all the other fields, member and static.

Copy an Object from one ClassLoader to Another?? - Java answers

  • Copy an Object from one ClassLoader to Another
  • This has the effect of recreating the c2 object in system class

    loader.
03 Nov 09

PackageAdmin (OSGi Service Platform Release 4 Version 4.1)

how to eliminate class loader memory leak when uninstalling a bundle: call the refreshPackages method.

www.osgi.org/...PackageAdmin.html - Preview

OSGi api javadoc package classloader memory leak

  • If no bundles are specified, this method will update or remove any
    packages exported by any bundles that were previously updated or
    uninstalled since the last call to this method.
  • One permissible implementation is to stop and restart the Framework.
  • 3 more annotations...
02 Nov 09

ClassLoader说明 - 锈材技术收藏站 - JavaEye技术网站

  • 大家可以看看sun.misc.Launcher的源码,Bootstrap和Extention就在该文件里。该src可以在sun的网站上下载该压缩包,约60M(jdk-1_5_0-src-scsl.zip),它不在jdk自带的那个src.zip里。
  • 在一个单虚拟机环境下,标识一个类有两个因素:class的全路径名、该类的ClassLoader
  • 3 more annotations...

Tacit Records: The Java Class Loader — Developer.com

  • Since each class loader is itself a class, the question as to which comes first is often asked.
  • The SecureClassLoader is an extension of ClassLoader and a standard class loader within the JDK runtime library.
  • 5 more annotations...

Java 编程的动态性,第 1 部分:类和类装入 - K.Y.Z@CSDN - CSDN博客

  • 在编写应用程序以使用接口时,可以到运行时才指定其实际实现。这个用于组装应用程序的后联编方法广泛用于 Java 平台,servlet 就是一个常见示例。
  • 每个构造好的类在某种意义上是由装入它的类装入器所“拥有”。类装入器通常保留它们所装入类的映射,从而当再次请求某个类时,能通过名称找到该类。
  • 5 more annotations...

Apache Tomcat 6.0 - Class Loader HOW-TO

  • Some JVMs may
    implement this as more than one class loader, or it may not be visible
    (as a class loader) at all.
  • the standard Tomcat 6 startup scripts
    ($CATALINA_HOME/bin/catalina.sh or
    %CATALINA_HOME%\bin\catalina.bat) totally ignore the contents
    of the CLASSPATH environment variable itself
  • 6 more annotations...
21 Apr 09

Is There a Place for OSGi in Enterprise Application Development? (Part 1) | Javalobby

  • the tough part is not in the introduction of a new release, but rather the removal of an older release, while ensuring continuous operation of the system.
  • Version management of Java classes or JARs is virtually non-existent.
  • 3 more annotations...

Thoughts on Software Engineering: Is OSGi going to become the next EJB ?

  • tracking services and managing all the aspects of what to do when services come and go is nasty
  • To be honest - I'd never even think about starting an OSGi project without using Spring DM.
  • 12 more annotations...

Unloading classes in java? - Stack Overflow

  • Is there any way to force the unloading of the class without actually killing the JVM?
  • The only way that a Class can be unloaded is if the Classloader used is garbage collected. This means, references to every single class and to the classloader itself need to go the way of the dodo.
  • 2 more annotations...
1 - 20 of 33 Next ›
Showing 20 items per page

Highlighter, Sticky notes, Tagging, Groups and Network: integrated suite dramatically boosting research productivity. Learn more »

Join Diigo