Return-Path: Delivered-To: apmail-jakarta-bcel-user-archive@www.apache.org Received: (qmail 59201 invoked from network); 23 Jan 2004 04:39:30 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 23 Jan 2004 04:39:30 -0000 Received: (qmail 78012 invoked by uid 500); 23 Jan 2004 04:39:11 -0000 Delivered-To: apmail-jakarta-bcel-user-archive@jakarta.apache.org Received: (qmail 77976 invoked by uid 500); 23 Jan 2004 04:39:11 -0000 Mailing-List: contact bcel-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "BCEL Users List" Reply-To: "BCEL Users List" Delivered-To: mailing list bcel-user@jakarta.apache.org Received: (qmail 77962 invoked from network); 23 Jan 2004 04:39:11 -0000 Received: from unknown (HELO web21509.mail.yahoo.com) (66.163.169.58) by daedalus.apache.org with SMTP; 23 Jan 2004 04:39:11 -0000 Message-ID: <20040123043920.99994.qmail@web21509.mail.yahoo.com> Received: from [218.149.67.136] by web21509.mail.yahoo.com via HTTP; Thu, 22 Jan 2004 20:39:20 PST Date: Thu, 22 Jan 2004 20:39:20 -0800 (PST) From: Konglish Khan Subject: How to replace the system's class loader? To: bcel-user@jakarta.apache.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-208109157-1074832760=:99923" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --0-208109157-1074832760=:99923 Content-Type: text/plain; charset=us-ascii Hi everyone, I've recently started working with the bcel libraries, nothing serious yet, but I plan to develop a program that will make good use of them. I just have a problem I haven't figured out yet. On the "Manual" section of the BCEL site (http://jakarta.apache.org/bcel/manual.html), Introduction, second paragraph, I read: "One can write a plug-in replacement for the system's class loader which is responsible for dynamically loading class files at run-time and passing the byte code to the Virtual Machine (see section ). Class loaders may thus be used to intercept the loading process and transform classes before they get actually executed by the JVM. While the original class files always remain unaltered, the behavior of the class loader may be reconfigured for every execution or instrumented dynamically." I do agree that making changes at load-time seems to be the right thing to do, so I want to do certain analysis and transformations at that stage. The problem I have is I don't know how could one replace the system's class loader. Say I'm using or intend to use the JVM , how may I replace its class loader? Does anyone know? Thanks a lot for any reply in advance. Martin --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! --0-208109157-1074832760=:99923--