com.morpheusdata.cypher.random.RandomNumberCypherProvider.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.*
import com.morpheusdata.cypher.CypherModule
class RandomNumberCypherProvider implements CypherModuleProvider {
MorpheusContext morpheusContext
Plugin plugin
RandomNumberCypherProvider(Plugin plugin, MorpheusContext morpheusContext) {
this.plugin = plugin
this.morpheusContext = morpheusContext
}
@Override
MorpheusContext getMorpheus() {
return morpheusContext
}
@Override
Plugin getPlugin() {
return plugin
}
/**
* An implementation of a CypherModule for reading and writing data patterns
* @return a cypher module
*/
@Override
CypherModule getCypherModule() {
new RandomNumberCypherModule()
}
/**
* The mount prefix point for which this module should be registered to cypher's backend.
* @return a String path prefix
*/
@Override
String getCypherMountPoint() {
return "random"
}
@Override
String getCode() {
return "randomNumberCypherSecret"
}
@Override
String getName() {
return "Random Number Cypher Module"
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy