Skip to Content.
Sympa Menu

notify-dpml - r1091 - trunk/main/transit/core/src/main/net/dpml/transit

notify-dpml AT lists.ibiblio.org

Subject: DPML Notify

List archive

Chronological Thread  
  • From: mcconnell at BerliOS <mcconnell AT mail.berlios.de>
  • To: notify-dpml AT lists.ibiblio.org
  • Subject: r1091 - trunk/main/transit/core/src/main/net/dpml/transit
  • Date: Tue, 14 Feb 2006 07:22:50 +0100

Author: mcconnell
Date: 2006-02-14 07:22:39 +0100 (Tue, 14 Feb 2006)
New Revision: 1091

Modified:
trunk/main/transit/core/src/main/net/dpml/transit/StandardLoader.java
Log:
check we are not doing an addition of nothing to the system classloader
before attempting to add content

Modified:
trunk/main/transit/core/src/main/net/dpml/transit/StandardLoader.java
===================================================================
--- trunk/main/transit/core/src/main/net/dpml/transit/StandardLoader.java
2006-02-14 05:48:54 UTC (rev 1090)
+++ trunk/main/transit/core/src/main/net/dpml/transit/StandardLoader.java
2006-02-14 06:22:39 UTC (rev 1091)
@@ -600,16 +600,19 @@

URI[] systemArtifacts = descriptor.getDependencies( Category.SYSTEM
);
URL[] sysUrls = getURLs( systemArtifacts );
- updateSystemClassLoader( plugin, sysUrls );
-
+ if( sysUrls.length > 0 )
+ {
+ updateSystemClassLoader( plugin, sysUrls );
+ }
+
URI[] apiArtifacts = descriptor.getDependencies( Category.PUBLIC );
URL[] apis = getURLs( apiArtifacts );
ClassLoader api = buildClassLoader( plugin, Category.PUBLIC, base,
apis );
-
+
URI[] spiArtifacts = descriptor.getDependencies( Category.PROTECTED
);
URL[] spis = getURLs( spiArtifacts );
ClassLoader spi = buildClassLoader( plugin, Category.PROTECTED, api,
spis );
-
+
URI[] impArtifacts = descriptor.getDependencies( Category.PRIVATE );
URL[] imps = getURLs( impArtifacts );
ClassLoader classloader = buildClassLoader( plugin,
Category.PRIVATE, spi, imps );




  • r1091 - trunk/main/transit/core/src/main/net/dpml/transit, mcconnell at BerliOS, 02/14/2006

Archive powered by MHonArc 2.6.24.

Top of Page