From graffito-dev-return-1296-apmail-incubator-graffito-dev-archive=www.apache.org@incubator.apache.org Mon Sep 11 21:18:29 2006 Return-Path: Delivered-To: apmail-incubator-graffito-dev-archive@www.apache.org Received: (qmail 59368 invoked from network); 11 Sep 2006 21:18:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Sep 2006 21:18:29 -0000 Received: (qmail 48953 invoked by uid 500); 11 Sep 2006 21:18:29 -0000 Mailing-List: contact graffito-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: graffito-dev@incubator.apache.org Delivered-To: mailing list graffito-dev@incubator.apache.org Received: (qmail 48941 invoked by uid 99); 11 Sep 2006 21:18:29 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Sep 2006 14:18:29 -0700 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received: from ([209.237.227.198:49125] helo=brutus.apache.org) by idunn.apache.osuosl.org (ecelerity 2.1 r(10620)) with ESMTP id DE/C0-27074-FA2D5054 for ; Mon, 11 Sep 2006 14:18:39 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 459DC410058 for ; Mon, 11 Sep 2006 20:15:23 +0000 (GMT) Message-ID: <1856893.1158005723282.JavaMail.jira@brutus> Date: Mon, 11 Sep 2006 13:15:23 -0700 (PDT) From: "Christophe Lombart (JIRA)" To: graffito-dev@incubator.apache.org Subject: [jira] Assigned: (GRFT-100) Support custom class loader for mapped classes In-Reply-To: <12001047.1157541982474.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/GRFT-100?page=all ] Christophe Lombart reassigned GRFT-100: --------------------------------------- Assignee: Christophe Lombart > Support custom class loader for mapped classes > ---------------------------------------------- > > Key: GRFT-100 > URL: http://issues.apache.org/jira/browse/GRFT-100 > Project: Graffito > Issue Type: Improvement > Components: JCR-Mapping > Affects Versions: 1.0-a1-dev > Reporter: Felix Meschberger > Assigned To: Christophe Lombart > Attachments: ClassLoading.fm20060906.patch > > > Currently, the ReflectionUtils.forName(String) method provides a class loading service, which just uses the class loader of the ReflectionUtils class itself to load classes. Many classes use the ReflectionUtils.forName(String) method, but some use the direct Class.forName(String) method. > Loading classes using Class.forName usually works very well in "simple" applications without much class loader ado. In certain environments, e.g. OSGi frameworks, classloaders are heavily used to separate parts of the application from other parts. In such environments, loading classes must be carefully crafted and using Class.forName(String) may not be adequate. > To come around this limitation a bit, I propose to add functionality to the ReflectionUtils class to inject a custom class loader to be used. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira