All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mobgen.halo.android.plugin.sdk.HaloModule.groovy Maven / Gradle / Ivy

There is a newer version: 2.9.3
Show newest version
package com.mobgen.halo.android.plugin.sdk

import com.mobgen.halo.android.plugin.sdk.modules.CoreModule.CoreBuilder
import groovy.json.JsonBuilder

/**
 * The halo extension to configure the plugin.
 */
public abstract class HaloModule {

    CoreBuilder coreBuilder

    private def configure() {
        println "-- Enabling ${moduleName()} module ---"
    }

    public def build(CoreBuilder builder) {
        this.coreBuilder = builder
        configure()
    }

    abstract String moduleName()

    abstract JsonBuilder buildConfig(JsonBuilder builder)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy