资 源 简 介
Guice Integration for Stripes
Stripes-guicer is early alpha software. Download and use at your own risk, and please leave bug reports!
What Do I Get with stripes-guicer?
Constructor, Field, and Method Injection in Stripes ActionBean, ActionBeanContext, and Interceptors
(Constructor injection is only available in ActionBeans.)
For example, if MyActionBean relies on MyService:
```
public class MyActionBean implements ActionBean {
private MyService myService;
private MyService otherService;
@Inject
public MyActionBean( MyService myService ) {
this.myService = myService;
}
@Inject public void setService(@MyAnnotation MyService service){
this.otherService = service;
}
}
```
ActionBeanContext injection:
public MyActionBeanContext extends ActionBeanContext { ... @Inject public void setServ