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

xitrum.view.GetActionClassDefaultsToCurrentAction.scala Maven / Gradle / Ivy

The newest version!
package xitrum.view

import xitrum.Action

trait GetActionClassDefaultsToCurrentAction {
  this: Action =>

  def getActionClass[T <: Action : Manifest]: Class[Action] = {
    val klass = manifest[T].runtimeClass.asInstanceOf[Class[Action]]
    if (klass == classOf[Nothing]) getClass.asInstanceOf[Class[Action]] else klass
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy