Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Registrar - "Redefining the Service Layer with Groovy Categories"
class PaymentTypeHandlerRegistrationCategory {
static final registry = [:]
// type => handler registration
static def register(Class type, Class handler) {
registry[type] = handler
static def getHandler(Class type) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment