notify-dpml AT lists.ibiblio.org
Subject: DPML Notify
List archive
r1526 - trunk/main/metro/runtime/src/main/net/dpml/metro/runtime
- From: mcconnell at BerliOS <mcconnell AT mail.berlios.de>
- To: notify-dpml AT lists.ibiblio.org
- Subject: r1526 - trunk/main/metro/runtime/src/main/net/dpml/metro/runtime
- Date: Fri, 23 Jun 2006 06:57:43 +0200
Author: mcconnell
Date: 2006-06-23 06:57:37 +0200 (Fri, 23 Jun 2006)
New Revision: 1526
Modified:
trunk/main/metro/runtime/src/main/net/dpml/metro/runtime/DefaultStateMachine.java
Log:
correct logging sequence
Modified:
trunk/main/metro/runtime/src/main/net/dpml/metro/runtime/DefaultStateMachine.java
===================================================================
---
trunk/main/metro/runtime/src/main/net/dpml/metro/runtime/DefaultStateMachine.java
2006-06-23 04:57:02 UTC (rev 1525)
+++
trunk/main/metro/runtime/src/main/net/dpml/metro/runtime/DefaultStateMachine.java
2006-06-23 04:57:37 UTC (rev 1526)
@@ -615,6 +615,16 @@
String target = transition.getTargetName();
State state = getState( context, target );
Operation operation = transition.getOperation();
+ if( getLogger().isTraceEnabled() )
+ {
+ String name = transition.getName();
+ String tag = getTag( object );
+ getLogger().trace(
+ "applying transition ["
+ + name
+ + "] to "
+ + tag );
+ }
if( null != operation )
{
execute( operation, object, new Object[0] ); // TODO: add
resolved values as args
@@ -634,6 +644,15 @@
if( "method".equals( scheme ) )
{
String methodName = handler.getSchemeSpecificPart();
+ if( getLogger().isTraceEnabled() )
+ {
+ String tag = getTag( object );
+ getLogger().trace(
+ "executing operation ["
+ + methodName
+ + "] on "
+ + tag );
+ }
Statement statement = new Statement( object, methodName, new
Object[0] );
try
{
- r1526 - trunk/main/metro/runtime/src/main/net/dpml/metro/runtime, mcconnell at BerliOS, 06/23/2006
Archive powered by MHonArc 2.6.24.