|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.cglib.core.DefaultGeneratorStrategy
net.sf.cglib.transform.impl.UndeclaredThrowableStrategy
public class UndeclaredThrowableStrategy
A GeneratorStrategy suitable for use with net.sf.cglib.Enhancer which
causes all undeclared exceptions thrown from within a proxied method to be wrapped
in an alternative exception of your choice.
| Field Summary |
|---|
| Fields inherited from class net.sf.cglib.core.DefaultGeneratorStrategy |
|---|
INSTANCE |
| Constructor Summary | |
|---|---|
UndeclaredThrowableStrategy(java.lang.Class wrapper)
Create a new instance of this strategy. |
|
| Method Summary | |
|---|---|
protected ClassGenerator |
transform(ClassGenerator cg)
|
| Methods inherited from class net.sf.cglib.core.DefaultGeneratorStrategy |
|---|
generate, getClassWriter, transform |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.cglib.core.GeneratorStrategy |
|---|
equals |
| Constructor Detail |
|---|
public UndeclaredThrowableStrategy(java.lang.Class wrapper)
wrapper - a class which extends either directly or
indirectly from Throwable and which has at least one
constructor that takes a single argument of type
Throwable, for example
java.lang.reflect.UndeclaredThrowableException.class| Method Detail |
|---|
protected ClassGenerator transform(ClassGenerator cg)
throws java.lang.Exception
transform in class DefaultGeneratorStrategyjava.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||