コード例 #1
0
  private static ServiceInterceptor getInterceptor(Class interceptorClass)
      throws ClassNotFoundException {
    ServiceInterceptor interceptor = interceptorMap.get(interceptorClass);

    if (interceptor == null) {
      interceptor = (ServiceInterceptor) ClassHelper.newInstance(interceptorClass);
      interceptorMap.put(interceptorClass, interceptor);
    }

    return (ServiceInterceptor) interceptor;
  }
コード例 #2
0
 /**
  * Method dumpHeader
  *
  * @param object Object
  * @param index int
  */
 private void dumpHeader(Object object, int index) {
   ClassHelper.dumpClassName(buffer, object.getClass(), useQualifiedClassNames);
   buffer.append('@').append(index);
 }