This is the tagging trait existing solely to have type associated with
with visor object so that implicit conversions can be done
on visor object itself. Implicit conversions are essential to extensibility
of the Visor.
Example
This is an example on how org.gridgain.visor.VisorTag trait is used to
extend visor natively with custom commands:
Overview
This is the tagging trait existing solely to have type associated with with
visorobject so that implicit conversions can be done onvisorobject itself. Implicit conversions are essential to extensibility of the Visor.Example
This is an example on how org.gridgain.visor.VisorTag trait is used to extend
visornatively with custom commands:<ex> class VisorCustomCommand { def foo(@Nullable args: String) = { if (visor.hasValue("bar", visor.parse(args))) println("foobar") else println("foo") } def foo(@Nullable args: Symbol*) = foo(visor.flatSymbols(args: _*)) } object VisorCustomCommand { implicit def fromVisor(vs: VisorTag) = new VisorCustomCommand } </ex>