|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Retention(value=CLASS) @Target(value=FIELD) public @interface SystemService
Use it on a SystemService fields in any enhanced classes to inject the according manager.
Example :
@EBean
public class MyBean {
@SystemService
NotificationManager notificationManager;
@SystemService
AlarmManager alarmManager;
}
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||