类 UndeclaredThrowableStrategy
- java.lang.Object
-
- net.sf.cglib.core.DefaultGeneratorStrategy
-
- net.sf.cglib.transform.impl.UndeclaredThrowableStrategy
-
- 所有已实现的接口:
GeneratorStrategy
public class UndeclaredThrowableStrategy extends DefaultGeneratorStrategy
AGeneratorStrategysuitable for use withnet.sf.cglib.Enhancerwhich causes all undeclared exceptions thrown from within a proxied method to be wrapped in an alternative exception of your choice.
-
-
字段概要
-
从类继承的字段 net.sf.cglib.core.DefaultGeneratorStrategy
INSTANCE
-
-
构造器概要
构造器 构造器 说明 UndeclaredThrowableStrategy(java.lang.Class wrapper)Create a new instance of this strategy.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected ClassGeneratortransform(ClassGenerator cg)-
从类继承的方法 net.sf.cglib.core.DefaultGeneratorStrategy
generate, getClassVisitor, getClassWriter, transform
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 net.sf.cglib.core.GeneratorStrategy
equals
-
-
-
-
构造器详细资料
-
UndeclaredThrowableStrategy
public UndeclaredThrowableStrategy(java.lang.Class wrapper)
Create a new instance of this strategy.- 参数:
wrapper- a class which extends either directly or indirectly fromThrowableand which has at least one constructor that takes a single argument of typeThrowable, for examplejava.lang.reflect.UndeclaredThrowableException.class
-
-
方法详细资料
-
transform
protected ClassGenerator transform(ClassGenerator cg) throws java.lang.Exception
- 覆盖:
transform在类中DefaultGeneratorStrategy- 抛出:
java.lang.Exception
-
-