jaxws/src/share/jaxws_classes/com/sun/org/glassfish/external/statistics/impl/StringStatisticImpl.java
changeset 19645 36f707905f2b
parent 16791 fe5141eabb0e
equal deleted inserted replaced
19257:30a1d677a20c 19645:36f707905f2b
     1 /*
     1 /*
     2  * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    88         sampleTime = -1L;
    88         sampleTime = -1L;
    89     }
    89     }
    90 
    90 
    91     // todo: equals implementation
    91     // todo: equals implementation
    92     public Object invoke(Object proxy, Method m, Object[] args) throws Throwable {
    92     public Object invoke(Object proxy, Method m, Object[] args) throws Throwable {
       
    93         checkMethod(m);
       
    94 
    93         Object result;
    95         Object result;
    94         try {
    96         try {
    95             result = m.invoke(this, args);
    97             result = m.invoke(this, args);
    96         } catch (InvocationTargetException e) {
    98         } catch (InvocationTargetException e) {
    97             throw e.getTargetException();
    99             throw e.getTargetException();
    98         } catch (Exception e) {
   100         } catch (Exception e) {
    99             throw new RuntimeException("unexpected invocation exception: " +
   101             throw new RuntimeException("unexpected invocation exception: " +
   100                        e.getMessage());
   102                        e.getMessage());
   101         } finally {
       
   102         }
   103         }
   103         return result;
   104         return result;
   104     }
   105     }
   105 }
   106 }