notify-dpml AT lists.ibiblio.org
Subject: DPML Notify
List archive
r1498 - trunk/main/metro/model/src/main/net/dpml/metro/info
- From: mcconnell at BerliOS <mcconnell AT mail.berlios.de>
- To: notify-dpml AT lists.ibiblio.org
- Subject: r1498 - trunk/main/metro/model/src/main/net/dpml/metro/info
- Date: Mon, 5 Jun 2006 20:18:18 +0200
Author: mcconnell
Date: 2006-06-05 20:18:15 +0200 (Mon, 05 Jun 2006)
New Revision: 1498
Modified:
trunk/main/metro/model/src/main/net/dpml/metro/info/Type.java
Log:
improve default name for component without an underlying type
Modified: trunk/main/metro/model/src/main/net/dpml/metro/info/Type.java
===================================================================
--- trunk/main/metro/model/src/main/net/dpml/metro/info/Type.java
2006-06-05 18:10:45 UTC (rev 1497)
+++ trunk/main/metro/model/src/main/net/dpml/metro/info/Type.java
2006-06-05 18:18:15 UTC (rev 1498)
@@ -298,7 +298,8 @@
*/
public static Type createType( Class clazz )
{
- final InfoDescriptor info = new InfoDescriptor( "object",
clazz.getName() );
+ String name = clazz.getName();
+ final InfoDescriptor info = new InfoDescriptor( name,
clazz.getName() );
final CategoryDescriptor[] loggers = new CategoryDescriptor[0];
final ContextDescriptor context = new ContextDescriptor( new
EntryDescriptor[0] );
final ServiceDescriptor[] services =
- r1498 - trunk/main/metro/model/src/main/net/dpml/metro/info, mcconnell at BerliOS, 06/05/2006
Archive powered by MHonArc 2.6.24.