I want to use the strategy pattern in Java. However, my boss doesn't like it if I add lots of files to the code base or write verbose code. It seems that with the strategy pattern I'd have to make one file for an interface and then five additional files so I can have a class for each of my five possible strategies.
Is there a way to express the strategy pattern in Java with fewer files and less code?
I think it would be ideal if my strategy variations could be represented on an Enum or one Set that is easy to assemble.