mcconnell 2003/06/21 17:28:33
Modified: merlin/assembly/src/java/org/apache/avalon/assembly/lifecycle/impl
DefaultDeploymentService.java
Log:
Enhancement to logging information.
Revision Changes Path
1.15 +7 -6
avalon-sandbox/merlin/assembly/src/java/org/apache/avalon/assembly/lifecycle/impl/DefaultDeploymentService.java
Index: DefaultDeploymentService.java
===================================================================
RCS file:
/home/cvs/avalon-sandbox/merlin/assembly/src/java/org/apache/avalon/assembly/lifecycle/impl/DefaultDeploymentService.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- DefaultDeploymentService.java 18 Jun 2003 11:16:14 -0000 1.14
+++ DefaultDeploymentService.java 22 Jun 2003 00:28:33 -0000 1.15
@@ -178,11 +178,6 @@
throw new NullPointerException( "classloader" );
}
- if( getLogger().isDebugEnabled() )
- {
- getLogger().debug( "initiating deployment: " + appliance );
- }
-
Object instance;
try
{
@@ -195,6 +190,12 @@
final String classname =
appliance.getType().getInfo().getClassname();
Class clazz = classloader.loadClass( classname );
instance = clazz.newInstance();
+
+ if( getLogger().isDebugEnabled() )
+ {
+ int id = System.identityHashCode( instance );
+ getLogger().debug( "component instance: " + id );
+ }
}
catch( Throwable e )
{
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]