This is to demonstrate how to dynamically switch implementations of interface by combination of DI and Factory
src
├╴xyz
│ └╴bebee
│ └╴example
│ └╴groovy
│ ├ ObjectDescription.groovy Interface
│ ├ BaseObjectDescription.groovy Basic implementation of interface
│ ├ StandardObjectDescription.groovy Advanced implementation of interface
│ └ DescriptionFactory.groovy Factory which creates / switches active
│ instance of ‘ObjectDescription’ interface
├ client_demo.groovy Client code
└ README.md This file
- TODO replace Gist with standard repository
- TODO leave short summary instead of Gist with link to repository