Skip to Content.
Sympa Menu

notify-dpml - r956 - trunk/main/metro/exec/src/main/net/dpml/metro/exec

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: r956 - trunk/main/metro/exec/src/main/net/dpml/metro/exec
  • Date: Tue, 24 Jan 2006 04:48:14 +0100

Author: mcconnell
Date: 2006-01-24 04:48:12 +0100 (Tue, 24 Jan 2006)
New Revision: 956

Modified:
trunk/main/metro/exec/src/main/net/dpml/metro/exec/ComponentAdapter.java
Log:
correct controller creation

Modified:
trunk/main/metro/exec/src/main/net/dpml/metro/exec/ComponentAdapter.java
===================================================================
--- trunk/main/metro/exec/src/main/net/dpml/metro/exec/ComponentAdapter.java
2006-01-24 03:26:58 UTC (rev 955)
+++ trunk/main/metro/exec/src/main/net/dpml/metro/exec/ComponentAdapter.java
2006-01-24 03:48:12 UTC (rev 956)
@@ -33,6 +33,8 @@
import net.dpml.metro.data.ValueDirective;

import net.dpml.part.local.Controller;
+import net.dpml.part.local.ControllerContext;
+import net.dpml.part.local.InitialContext;
import net.dpml.part.remote.Component;
import net.dpml.part.ControlException;
import net.dpml.part.remote.Provider;
@@ -103,8 +105,9 @@
URI uri = new URI( "@COMPOSITION-CONTROLLER-URI@" );
Repository repository = Transit.getInstance().getRepository();
Class c = repository.getPluginClass( classloader, uri );
- Constructor constructor = c.getConstructor( new
Class[]{Logger.class} );
- m_controller = (Controller) constructor.newInstance( new
Object[]{logger} );
+ InitialContext context = new InitialContext( logger );
+ Constructor constructor = c.getConstructor( new
Class[]{ControllerContext.class} );
+ m_controller = (Controller) constructor.newInstance( new
Object[]{context} );
}
catch( Exception e )
{




  • r956 - trunk/main/metro/exec/src/main/net/dpml/metro/exec, mcconnell at BerliOS, 01/23/2006

Archive powered by MHonArc 2.6.24.

Top of Page