GeneratorStrategy suitable for use with org.springframework.cglib.proxy.Enhancer which
causes all undeclared exceptions thrown from within a proxied method to be wrapped
in an alternative exception of your choice.
| Modifier and Type | Field and Description |
|---|---|
| private static final MethodFilter | |
| private Class |
| Access | Constructor and Description |
|---|---|
| public | UndeclaredThrowableStrategy(Class<T>
a class which extends either directly or
indirectly from wrapper)Throwable and which has at least one
constructor that takes a single argument of type
Throwable, for example
java.lang.reflect.UndeclaredThrowableException.classCreate a new instance of this strategy. |
| Modifier and Type | Method and Description |
|---|---|
| protected ClassGenerator |
| TRANSFORM_FILTER | back to summary |
|---|---|
| private static final MethodFilter TRANSFORM_FILTER | |
| wrapper | back to summary |
|---|---|
| private Class<T> wrapper | |
| UndeclaredThrowableStrategy | back to summary |
|---|---|
| public UndeclaredThrowableStrategy(Class<T> wrapper) Create a new instance of this strategy.
| |
| transform | back to summary |
|---|---|
| protected ClassGenerator transform(ClassGenerator cg) throws Exception Overrides org.
| |