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

cn.dreampie.common.plugin.akka.Akka Maven / Gradle / Ivy

There is a newer version: 1.2.2
Show newest version
package cn.dreampie.common.plugin.akka;

import akka.actor.ActorSystem;
import cn.dreampie.common.util.ValidateUtils;

/**
 * Created by wangrenhui on 14-5-6.
 */
public class Akka {

  /**
   * Retrieve the application Akka Actor system.
   * 

* Example: * {{{ * val newActor = Akka.system.actorOf[Props[MyActor]] * }}} * * @return ActorSystem */ public static ActorSystem system() { ActorSystem applicationSystem = AkkaPlugin.applicationSystem; if (ValidateUtils.me().isNullOrEmpty(applicationSystem)) { throw new RuntimeException("Akka plugin is not registered."); } return applicationSystem; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy