commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bali...@apache.org
Subject cvs commit: jakarta-commons-sandbox/simplestore/src/java/org/apache/commons/simplestore/tools Enhancer.java
Date Mon, 29 Apr 2002 18:01:59 GMT
baliuka     02/04/29 11:01:59

  Modified:    simplestore build.xml
               simplestore/src/java/org/apache/commons/simplestore/persistence/impl
                        DBStorage.java
               simplestore/src/java/org/apache/commons/simplestore/tools
                        Enhancer.java
  Log:
  
  
  Revision  Changes    Path
  1.21      +2 -2      jakarta-commons-sandbox/simplestore/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/simplestore/build.xml,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- build.xml	20 Mar 2002 17:49:49 -0000	1.20
  +++ build.xml	29 Apr 2002 18:01:59 -0000	1.21
  @@ -2,7 +2,7 @@
   
   <!--
           "simplestore" component of the Jakarta Commons Subproject
  -        $Id: build.xml,v 1.20 2002/03/20 17:49:49 baliuka Exp $
  +        $Id: build.xml,v 1.21 2002/04/29 18:01:59 baliuka Exp $
   -->
   
   <!-- ========== Executable Targets ======================================== -->
  @@ -104,7 +104,7 @@
                    bottom="Copyright (c) 2001 - Apache Software Foundation"/>
     </target>
   
  -  <target name="dist" depends="compile,javadoc"
  +  <target name="dist" depends="compile"
      description="Create binary distribution">
       <mkdir      dir="${dist.home}"/>
       <copy      file="../LICENSE"
  
  
  
  1.19      +2 -4      jakarta-commons-sandbox/simplestore/src/java/org/apache/commons/simplestore/persistence/impl/DBStorage.java
  
  Index: DBStorage.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/simplestore/src/java/org/apache/commons/simplestore/persistence/impl/DBStorage.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- DBStorage.java	20 Apr 2002 10:30:18 -0000	1.18
  +++ DBStorage.java	29 Apr 2002 18:01:59 -0000	1.19
  @@ -85,17 +85,15 @@
   /**
    *@author     Juozas Baliuka <a href="mailto:baliuka@mwm.lt">
    *      baliuka@mwm.lt</a>
  - *@version    $Id: DBStorage.java,v 1.18 2002/04/20 10:30:18 baliuka Exp $
  + *@version    $Id: DBStorage.java,v 1.19 2002/04/29 18:01:59 baliuka Exp $
    */
   public class DBStorage extends AbstractStorage implements org.apache.commons.simplestore.tools.Constants
{
       
       private final static String CONNECTION = "org.apache.commons.simplestore.jdbc.DBStorage.connection";
       private final static String INTERNAL_OID = "INTERNAL_OID";
  -    //TODO : must be in MetaClass
  -    private static Properties procedures = new Properties();
       private ConnectionFactory ds;
       private Context context;
  -    //private MetaClass rootMetaClass = new MetaClassImpl(this);
  +   
       /**
        * Creates new DBStorageManager
        *
  
  
  
  1.23      +7 -4      jakarta-commons-sandbox/simplestore/src/java/org/apache/commons/simplestore/tools/Enhancer.java
  
  Index: Enhancer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/simplestore/src/java/org/apache/commons/simplestore/tools/Enhancer.java,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- Enhancer.java	29 Apr 2002 11:52:09 -0000	1.22
  +++ Enhancer.java	29 Apr 2002 18:01:59 -0000	1.23
  @@ -135,7 +135,7 @@
    * </pre>
    *@author     Juozas Baliuka <a href="mailto:baliuka@mwm.lt">
    *      baliuka@mwm.lt</a>
  - *@version    $Id: Enhancer.java,v 1.22 2002/04/29 11:52:09 baliuka Exp $
  + *@version    $Id: Enhancer.java,v 1.23 2002/04/29 18:01:59 baliuka Exp $
    */
   public class Enhancer implements org.apache.bcel.Constants ,
   Constants{
  @@ -195,10 +195,13 @@
       throws Throwable {
           enhanced.getClass().getField(FIELD_NAME).set(enhanced, ih);
       }
  -    public static MethodInterceptor getMethodInterceptor(Object enhanced)
  -    throws Throwable {
  +    public static MethodInterceptor getMethodInterceptor(Object enhanced){
  +      try{      
           return (MethodInterceptor) enhanced.getClass().getField(FIELD_NAME).get(
  -        enhanced);
  +            enhanced);
  +      }catch(Exception e){
  +        throw new java.lang.IllegalStateException(e.getMessage());
  +      }
       }
       public static void addConstructionHandler(ConstructionHandler ch) {
           costructionHandlers.add(ch);
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message