Skip to Content.
Sympa Menu

notify-dpml - r1238 - trunk/main/metro/runtime/src/main/net/dpml/metro/runtime

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: r1238 - trunk/main/metro/runtime/src/main/net/dpml/metro/runtime
  • Date: Tue, 21 Mar 2006 04:40:25 +0100

Author: mcconnell
Date: 2006-03-21 04:40:18 +0100 (Tue, 21 Mar 2006)
New Revision: 1238

Modified:

trunk/main/metro/runtime/src/main/net/dpml/metro/runtime/DefaultComponentModel.java
Log:
fix name handling in component model

Modified:
trunk/main/metro/runtime/src/main/net/dpml/metro/runtime/DefaultComponentModel.java
===================================================================
---
trunk/main/metro/runtime/src/main/net/dpml/metro/runtime/DefaultComponentModel.java
2006-03-21 03:12:33 UTC (rev 1237)
+++
trunk/main/metro/runtime/src/main/net/dpml/metro/runtime/DefaultComponentModel.java
2006-03-21 03:40:18 UTC (rev 1238)
@@ -104,7 +104,6 @@

m_classpath = classpath;
m_controller = controller;
- m_path = partition + directive.getName();
m_directive = directive;

m_classloader = m_controller.getClassLoader( anchor, classpath );
@@ -112,6 +111,16 @@
m_class = m_controller.loadComponentClass( m_classloader,
m_classname );
m_type = m_controller.loadType( m_class );

+ String name = directive.getName();
+ if( null == name )
+ {
+ m_path = partition + m_type.getInfo().getName();
+ }
+ else
+ {
+ m_path = partition + name;
+ }
+
m_activation = directive.getActivationPolicy();
m_lifestyle = directive.getLifestylePolicy();
m_collection = directive.getCollectionPolicy();




  • r1238 - trunk/main/metro/runtime/src/main/net/dpml/metro/runtime, mcconnell at BerliOS, 03/20/2006

Archive powered by MHonArc 2.6.24.

Top of Page