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

您现在的位置是:虫虫源码 > Java > 短跑框架是依赖获取,上下文变量,并支持组件开发。

短跑框架是依赖获取,上下文变量,并支持组件开发。

资 源 简 介

The Dash Framework enables Java components to be developed with clear and documentable external dependencies on configuration, component wiring, and runtime context. Dash Obtain DashObtain: Provides lazy, thread-safe acquisition of fields with the @Obtain annotation. Like dependency injection, but more declarative. Example @Obtain use (without error handling...): ``` public class Forwarder implements MessageListener { @Obtain MessageProducer forwardTo; public void onMessage(Message message) { forwardTo.send(message); } } ``` Dash Context DashContext: Provides "safe" global variables: a public static @Context field can be exposed in a thread-safe, thread-local, and execution scoped manner. An example is authenticated User. Contextual and execution scoped access to the current principal user is easy to show: ``` public class Authentication { @Context static Principal pri

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
  • WYG 1天前 成为了本站会员

  • Shine 1天前 成为了本站会员

  • 柳贻 1天前 成为了本站会员

  • hallelujah_HL 1天前 成为了本站会员

  • 焦昱贺 1天前 成为了本站会员

  • Rubin 1天前 成为了本站会员

  • Li 2天前 成为了本站会员

  • bigfatcat1977 3天前 成为了本站会员

  • just4down 3天前 成为了本站会员

  • shallow 3天前 成为了本站会员

0.223630s