com.morpheusdata.cypher.random.CypherSamplePlugin.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of morpheus-cypher-plugin Show documentation
Show all versions of morpheus-cypher-plugin Show documentation
Morpheus Plugin API provides the core framework for implementing extension plugins for the morpheus platform
The newest version!
package com.morpheusdata.cypher.random
import com.morpheusdata.core.Plugin
class CypherSamplePlugin extends Plugin {
@Override
void initialize() {
RandomNumberCypherProvider randomNumberCypherProvider = new RandomNumberCypherProvider(this, morpheus)
this.setName("Cypher Random Number Backend")
this.setDescription("Provides a random number generator between 1 and specified key value with key /random/xx")
this.setAuthor("David Estes")
this.pluginProviders.put(randomNumberCypherProvider.code, randomNumberCypherProvider)
}
/**
* Called when a plugin is being removed from the plugin manager (aka Uninstalled)
*/
@Override
void onDestroy() {
// morpheusContext.task.disableTask('reverseTextTask')
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy