leif        2002/08/20 03:32:10

  Modified:    component/src/java/org/apache/avalon/excalibur/component
                        ComponentHandler.java
  Log:
  Improve the error message generated if a user tries to create a Component with
  more than one lifecycle interface.
  
  Revision  Changes    Path
  1.6       +4 -2      
jakarta-avalon-excalibur/component/src/java/org/apache/avalon/excalibur/component/ComponentHandler.java
  
  Index: ComponentHandler.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-avalon-excalibur/component/src/java/org/apache/avalon/excalibur/component/ComponentHandler.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- ComponentHandler.java     18 Aug 2002 14:40:22 -0000      1.5
  +++ ComponentHandler.java     20 Aug 2002 10:32:10 -0000      1.6
  @@ -135,7 +135,9 @@
   
           if( numInterfaces > 1 )
           {
  -            throw new Exception( "[CONFLICT] lifestyle interfaces: " + 
componentClass.getName() );
  +            throw new Exception( "[CONFLICT] More than one lifecycle interface in "
  +                + componentClass.getName() + "  May implement no more than one of "
  +                + "SingleThreaded, ThreadSafe, or Poolable" );
           }
   
           // Create the factory to use to create the instances of the Component.
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to