Automatically generate class interface


#1

For mocking purpose can be useful to have a mockable interface of a closed (final) class.

Like a .h file in C, the @GeneratedInterface(“package.InterfaceName”) annotation can generate automatically an interface for all public method of current class.
This helps to use interface rather than implementation, can be useful with some framework like Spring and later it is possible create that interface having multiple implementations.

Suggestions?

PS: This isn’t a mock/no-mock debate.