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

您现在的位置是:虫虫源码 > Java > Tiny Dependency Injection Framework

Tiny Dependency Injection Framework

  • 资源大小:14.76 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签:

资 源 简 介

TinyDI - A lightweight Java dependency framework with javax.inject support (through @Inject, @Named, @Singleton) Goals: minimal footprint (6 classes and a few KBytes alltogether) high performance (no AOP, no XML) restricted to java member variable injection (via setters only) primarily for Servlet environment (support via Servlet Listener and a base Servlet class, including Google App Engine) Maven com.googlecode.tinydi tinydi 1.2 How does it work? Definition of your managed bean (the subject of injection). The annotations below are from the javax.inject package. ``` @Named public class ManagedBean { } ``` Definition of your bean with alias: ``` @Named("alias") public class Al
VIP VIP
0.176324s