You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by mc...@apache.org on 2003/03/06 15:24:17 UTC

cvs commit: avalon-sandbox/assembly/src/java/org/apache/avalon/assembly/lifecycle/context ComponentInvocationHandler.java

mcconnell    2003/03/06 06:24:17

  Modified:    assembly/src/java/org/apache/avalon/assembly/lifecycle/context
                        ComponentInvocationHandler.java
  Log:
  U-pgraded to throw LifecycleException instead of Exception.
  
  Revision  Changes    Path
  1.4       +6 -5      avalon-sandbox/assembly/src/java/org/apache/avalon/assembly/lifecycle/context/ComponentInvocationHandler.java
  
  Index: ComponentInvocationHandler.java
  ===================================================================
  RCS file: /home/cvs/avalon-sandbox/assembly/src/java/org/apache/avalon/assembly/lifecycle/context/ComponentInvocationHandler.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ComponentInvocationHandler.java	16 Feb 2003 11:00:47 -0000	1.3
  +++ ComponentInvocationHandler.java	6 Mar 2003 14:24:17 -0000	1.4
  @@ -14,7 +14,7 @@
   import org.apache.avalon.meta.info.Type;
   import org.apache.avalon.meta.info.ServiceDescriptor;
   import org.apache.avalon.framework.component.Component;
  -import org.apache.avalon.framework.component.ComponentException;
  +import org.apache.avalon.assembly.lifecycle.LifecycleException;
   
   /**
    * This makes a dynamic proxy for an object.  The object can be represented
  @@ -36,7 +36,8 @@
        * @param type the component type
        * @exception if an invocation handler establishment error occurs
        */
  -    protected ComponentInvocationHandler( final Object object, Type type ) throws ComponentException
  +    protected ComponentInvocationHandler( final Object object, Type type ) 
  +      throws Exception
       {
           final ClassLoader loader = object.getClass().getClassLoader();
           
  @@ -96,7 +97,7 @@
           }
       }
   
  -    private Class[] getClasses( Type type, ClassLoader loader ) throws ComponentException
  +    private Class[] getClasses( Type type, ClassLoader loader ) throws Exception
       {
           try
           {
  @@ -113,7 +114,7 @@
           {
               final String error = 
                 "Unable to create a Component proxy for an type: " + type;
  -            throw new ComponentException( error, e );
  +            throw new LifecycleException( error, e );
           }
       }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org