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

io.hydrosphere.mist.contexts.ContextSpecification.scala Maven / Gradle / Ivy

There is a newer version: 0.10.0
Show newest version
package io.hydrosphere.mist.contexts

import io.hydrosphere.mist.Specification
/*
private[mist] trait ContextSpecification extends Specification[ContextWrapper]

/** Predicate for search the first available [[ContextWrapper]] */
private[mist] class DummyContextSpecification extends ContextSpecification {
  override def specified(context: ContextWrapper): Boolean = {
    true
  }
}

/** Predicate for search [[ContextWrapper]] by namespace
  *
  * @param name namespace
  */
private[mist] class NamedContextSpecification(name: String) extends ContextSpecification {
  override def specified(context: ContextWrapper): Boolean = {
    context.asInstanceOf[NamedContextWrapper].name == name
  }
}
*/




© 2015 - 2024 Weber Informatics LLC | Privacy Policy