@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; }
Copyright © 2010-2014. All Rights Reserved.