org.glassfish.gmbal.logex
Class WrapperGenerator

java.lang.Object
  extended by org.glassfish.gmbal.logex.WrapperGenerator

public class WrapperGenerator
extends Object

Given an annotated interface, return a Proxy that implements that interface. Interface must be annotated with @ExceptionWrapper( String idPrefix, String loggerName ). id prefix defaults to empty, loggerName defaults to the package name of the annotated class. The behavior of the implementation of each method on the interface is determined in part by its return type as follows:

Each method may be annotated as follows: In addition, the @Chain annotation may be used on a method parameter (whose type must be a subclass of Throwable) of a method that returns an exception to indicate that the parameter should be the cause of the returned exception. All other method parameters are used as arguments in formatting the message.

Author:
ken

Method Summary
static
<T> T
makeWrapper(Class<T> cls)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

makeWrapper

public static <T> T makeWrapper(Class<T> cls)


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.