Skip to Content.
Sympa Menu

notify-dpml - svn commit: r1460 - development/main/metro/activation/providers/metro/src/main/net/dpml/activation/metro

notify-dpml AT lists.ibiblio.org

Subject: DPML Notify

List archive

Chronological Thread  
  • From: niclas AT netcompartner.com
  • To: notify-dpml AT lists.ibiblio.org
  • Subject: svn commit: r1460 - development/main/metro/activation/providers/metro/src/main/net/dpml/activation/metro
  • Date: Tue, 11 Jan 2005 06:22:58 +0100

Author: niclas
Date: Tue Jan 11 06:22:58 2005
New Revision: 1460

Modified:

development/main/metro/activation/providers/metro/src/main/net/dpml/activation/metro/DefaultComponentFactory.java
Log:
Only ONE public constructor is allowed in Metro components.

Modified:
development/main/metro/activation/providers/metro/src/main/net/dpml/activation/metro/DefaultComponentFactory.java
==============================================================================
---
development/main/metro/activation/providers/metro/src/main/net/dpml/activation/metro/DefaultComponentFactory.java
(original)
+++
development/main/metro/activation/providers/metro/src/main/net/dpml/activation/metro/DefaultComponentFactory.java
Tue Jan 11 06:22:58 2005
@@ -646,28 +646,14 @@

if( constructors.length > 1 )
{
- //
- // we risk conflicting with an object designed for 4.1.2 or
- // earlier that has a null arg constructor - so if this class
- // has a null arg constructor then invoke it, otherwise we
- // we are dealing with an ambigouse object
- //
-
- try
- {
- return clazz.getConstructor( new Class[0] );
- }
- catch( NoSuchMethodException e )
- {
- final String error =
- "Multiple constructor ambiguity in the component model "
- + m_model
- + ". The component class [" + clazz.getName()
- + "] declares "
- + constructors.length
- + " public constructors.";
- throw new LifecycleException( error );
- }
+ final String error =
+ "Multiple constructor ambiguity in the component model "
+ + m_model
+ + ". The component class [" + clazz.getName()
+ + "] declares "
+ + constructors.length
+ + " public constructors.";
+ throw new LifecycleException( error );
}
else
{



  • svn commit: r1460 - development/main/metro/activation/providers/metro/src/main/net/dpml/activation/metro, niclas, 01/11/2005

Archive powered by MHonArc 2.6.24.

Top of Page