首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Java > 简单的java接口模式匹配模板的Erlang

简单的java接口模式匹配模板的Erlang

资 源 简 介

The JInterface API provides a solid framework for communicating between Java and Erlang. The Java side code tends to be very verbose. This project simplifies the pattern matching allowing such code as IIProcess process = erlang4J.spawn(// new MessageAdapter("{Pid,{status,Status}}") { public void process(IMessageContext context) { ioFormat("Status: %s from Pid %s", // context.getString("Status"), context.getPid("Pid")); } }, new MessageAdapter("{Pid,{command1,Param1,Param2}}") { public void process(IMessageContext context) { ioFormat("Command1(%s,%s) from Pid %s", // context.getString("Param1"), context.getString("Param2"), context.getPid("Pid")); } }, new MessageAdapter("Any") { public void process(IMessageContext context) { ioFormat("unexpected command %s", context.getRaw("Any"

文 件 列 表

documentation
com
allclasses-frame.html
allclasses-noframe.html
constant-values.html
deprecated-list.html
help-doc.html
index-all.html
index.html
overview-frame.html
overview-summary.html
overview-tree.html
serialized-form.html
example
messageProcessor
rpc
sendMessage
swingClient
lib
OtpErlang.jar
erlang4j-0.3.2.jar
junit.jar
src
java
unit
simpleServer.erl
License.txt
OpenSourceProjectsUsed.txt
ReleaseNotes.txt

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
0.215348s