Top Description Fields Constructors Methods
org.springframework.cglib.transform.impl

public Class UndeclaredThrowableStrategy

extends DefaultGeneratorStrategy
Class Inheritance
Annotations
@SuppressWarnings:rawtypes, unchecked
Imports
org.springframework.cglib.core.ClassGenerator, .ClassTransformer, .DefaultGeneratorStrategy, .GeneratorStrategy, .TypeUtils, org.springframework.cglib.transform.MethodFilter, .MethodFilterTransformer, .TransformingClassGenerator

A 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.

Field Summary

Modifier and TypeField and Description
private static final MethodFilter
private Class<T>
Inherited from org.springframework.cglib.core.DefaultGeneratorStrategy:
INSTANCE

Constructor Summary

AccessConstructor and Description
public
UndeclaredThrowableStrategy(Class<T>
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
wrapper
)

Create a new instance of this strategy.

Method Summary

Modifier and TypeMethod and Description
protected ClassGenerator
Inherited from org.springframework.cglib.core.DefaultGeneratorStrategy:
generategetClassVisitorgetClassWritertransform

Field Detail

TRANSFORM_FILTERback to summary
private static final MethodFilter TRANSFORM_FILTER
wrapperback to summary
private Class<T> wrapper

Constructor Detail

UndeclaredThrowableStrategyback to summary
public UndeclaredThrowableStrategy(Class<T> wrapper)

Create a new instance of this strategy.

Parameters
wrapper:Class<T>

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

transformback to summary
protected ClassGenerator transform(ClassGenerator cg) throws Exception

Overrides org.springframework.cglib.core.DefaultGeneratorStrategy.transform.

Annotations
@Override