Refactor and Delegation

I have a class that implements a couple of interfaces.

For one of the interfaces, I want to move all of its implementing
methods into a separate class, then have the original class delegate all
interface method calls to that class.

Does IDEA have a refactoring for this?

Thanks.

2 comments
Comment actions Permalink


Refactor -> Replace Inheritance with Delegation


0
Comment actions Permalink

Wow! I always assumed that only worked with inheritance from classes, not interfaces. Sweet.

--Dave Griffith

0

Please sign in to leave a comment.