Decorator Generator

Is there an IDEA "Decorator Generator" plug-in?

For example, given the following interface:

interface X {
int m(int i);

Generate the following implementation (or something similar):

class XImpl implements X {
private X x;
public XImpl(X x) {
this.x = x;
public int m(int i) {
return x.m(i);

If not, is it trivial to develop?

Tony Morris

1 comment
Comment actions Permalink

The Delegate Methods in the Code menu will help you do this.



Please sign in to leave a comment.