Skip to Content.
Sympa Menu

notify-dpml - svn commit: r1483 - in development/main/metro/composition: impl/src/main/net/dpml/composition/model/impl spi/src/main/net/dpml/composition/provider

notify-dpml AT lists.ibiblio.org

Subject: DPML Notify

List archive

Chronological Thread  
  • From: niclas AT netcompartner.com
  • To: notify-dpml AT lists.ibiblio.org
  • Subject: svn commit: r1483 - in development/main/metro/composition: impl/src/main/net/dpml/composition/model/impl spi/src/main/net/dpml/composition/provider
  • Date: Sun, 16 Jan 2005 07:01:58 +0100

Author: niclas
Date: Sun Jan 16 07:01:58 2005
New Revision: 1483

Modified:

development/main/metro/composition/impl/src/main/net/dpml/composition/model/impl/DefaultContainmentModel.java

development/main/metro/composition/spi/src/main/net/dpml/composition/provider/CompositionHelper.java
Log:
Added the Classloader info to the Audit report. This rudimentary support at
least gives one a fighting chance to see what is happening.

Modified:
development/main/metro/composition/impl/src/main/net/dpml/composition/model/impl/DefaultContainmentModel.java
==============================================================================
---
development/main/metro/composition/impl/src/main/net/dpml/composition/model/impl/DefaultContainmentModel.java
(original)
+++
development/main/metro/composition/impl/src/main/net/dpml/composition/model/impl/DefaultContainmentModel.java
Sun Jan 16 07:01:58 2005
@@ -101,20 +101,6 @@
private static final XMLTargetsCreator TARGETS =
new XMLTargetsCreator();

-/* Never used. TODO: Remove
- private static String getPath( ContainmentContext context )
- {
- if( context.getPartitionName() == null )
- {
- return SEPARATOR;
- }
- else
- {
- return context.getPartitionName();
- }
- }
-*/
-
//--------------------------------------------------------------
// immutable state
//--------------------------------------------------------------

Modified:
development/main/metro/composition/spi/src/main/net/dpml/composition/provider/CompositionHelper.java
==============================================================================
---
development/main/metro/composition/spi/src/main/net/dpml/composition/provider/CompositionHelper.java
(original)
+++
development/main/metro/composition/spi/src/main/net/dpml/composition/provider/CompositionHelper.java
Sun Jan 16 07:01:58 2005
@@ -18,6 +18,9 @@

package net.dpml.composition.provider;

+import java.net.URL;
+import java.net.URLClassLoader;
+
import net.dpml.composition.model.DeploymentModel;
import net.dpml.composition.model.ContainmentModel;
import net.dpml.composition.model.ComponentModel;
@@ -69,6 +72,7 @@
+ "container:"
+ model
+ ")" );
+ printClassloader( buffer, lead, model );
printDeploymentModel( buffer, lead, model );
DeploymentModel[] models = model.getModels();
if( models.length > 0 )
@@ -152,4 +156,19 @@
}
return false;
}
+
+ private static void printClassloader( StringBuffer buffer, String lead,
ContainmentModel model )
+ {
+ ClassLoader cl = model.getClassLoaderModel().getClassLoader();
+ buffer.append( "\n" + lead + " classloader: " + cl );
+ if( cl instanceof URLClassLoader )
+ {
+ URLClassLoader ucl = (URLClassLoader) cl;
+ URL[] urls = ucl.getURLs();
+ for( int i = 0 ; i < urls.length ; i++ )
+ {
+ buffer.append( "\n" + lead + " " + urls[i] );
+ }
+ }
+ }
}



  • svn commit: r1483 - in development/main/metro/composition: impl/src/main/net/dpml/composition/model/impl spi/src/main/net/dpml/composition/provider, niclas, 01/16/2005

Archive powered by MHonArc 2.6.24.

Top of Page