Search in sources :

Example 1 with ReceiverHandler

use of org.androidannotations.internal.core.handler.ReceiverHandler in project androidannotations by androidannotations.

the class CorePlugin method getHandlers.

@Override
public List<AnnotationHandler<?>> getHandlers(AndroidAnnotationsEnvironment androidAnnotationEnv) {
    List<AnnotationHandler<?>> annotationHandlers = new ArrayList<>();
    annotationHandlers.add(new EApplicationHandler(androidAnnotationEnv));
    annotationHandlers.add(new EActivityHandler(androidAnnotationEnv));
    annotationHandlers.add(new EProviderHandler(androidAnnotationEnv));
    annotationHandlers.add(new EReceiverHandler(androidAnnotationEnv));
    annotationHandlers.add(new EServiceHandler(androidAnnotationEnv));
    annotationHandlers.add(new EIntentServiceHandler(androidAnnotationEnv));
    annotationHandlers.add(new EFragmentHandler(androidAnnotationEnv));
    annotationHandlers.add(new EBeanHandler(androidAnnotationEnv));
    annotationHandlers.add(new EViewGroupHandler(androidAnnotationEnv));
    annotationHandlers.add(new EViewHandler(androidAnnotationEnv));
    annotationHandlers.add(new SharedPrefHandler(androidAnnotationEnv));
    annotationHandlers.add(new PrefHandler(androidAnnotationEnv));
    annotationHandlers.add(new ViewByIdHandler(androidAnnotationEnv));
    annotationHandlers.add(new ViewsByIdHandler(androidAnnotationEnv));
    annotationHandlers.add(new FragmentByIdHandler(androidAnnotationEnv));
    annotationHandlers.add(new FragmentByTagHandler(androidAnnotationEnv));
    annotationHandlers.add(new FromHtmlHandler(androidAnnotationEnv));
    annotationHandlers.add(new ClickHandler(androidAnnotationEnv));
    annotationHandlers.add(new LongClickHandler(androidAnnotationEnv));
    annotationHandlers.add(new TouchHandler(androidAnnotationEnv));
    annotationHandlers.add(new FocusChangeHandler(androidAnnotationEnv));
    annotationHandlers.add(new CheckedChangeHandler(androidAnnotationEnv));
    annotationHandlers.add(new ItemClickHandler(androidAnnotationEnv));
    annotationHandlers.add(new ItemSelectHandler(androidAnnotationEnv));
    annotationHandlers.add(new ItemLongClickHandler(androidAnnotationEnv));
    annotationHandlers.add(new EditorActionHandler(androidAnnotationEnv));
    for (AndroidRes androidRes : AndroidRes.values()) {
        if (androidRes == AndroidRes.ANIMATION) {
            annotationHandlers.add(new AnimationResHandler(androidAnnotationEnv));
        } else if (androidRes == AndroidRes.COLOR) {
            annotationHandlers.add(new ColorResHandler(androidAnnotationEnv));
        } else if (androidRes == AndroidRes.COLOR_STATE_LIST) {
            annotationHandlers.add(new ColorStateListResHandler(androidAnnotationEnv));
        } else if (androidRes == AndroidRes.DRAWABLE) {
            annotationHandlers.add(new DrawableResHandler(androidAnnotationEnv));
        } else if (androidRes == AndroidRes.HTML) {
            annotationHandlers.add(new HtmlResHandler(androidAnnotationEnv));
        } else {
            annotationHandlers.add(new DefaultResHandler(androidRes, androidAnnotationEnv));
        }
    }
    annotationHandlers.add(new TransactionalHandler(androidAnnotationEnv));
    annotationHandlers.add(new FragmentArgHandler(androidAnnotationEnv));
    annotationHandlers.add(new SystemServiceHandler(androidAnnotationEnv));
    annotationHandlers.add(new NonConfigurationInstanceHandler(androidAnnotationEnv));
    annotationHandlers.add(new AppHandler(androidAnnotationEnv));
    annotationHandlers.add(new BeanHandler(androidAnnotationEnv));
    annotationHandlers.add(new InjectMenuHandler(androidAnnotationEnv));
    annotationHandlers.add(new OptionsMenuHandler(androidAnnotationEnv));
    annotationHandlers.add(new OptionsMenuItemHandler(androidAnnotationEnv));
    annotationHandlers.add(new OptionsItemHandler(androidAnnotationEnv));
    annotationHandlers.add(new CustomTitleHandler(androidAnnotationEnv));
    annotationHandlers.add(new FullscreenHandler(androidAnnotationEnv));
    annotationHandlers.add(new RootContextHandler(androidAnnotationEnv));
    annotationHandlers.add(new ExtraHandler(androidAnnotationEnv));
    annotationHandlers.add(new BeforeTextChangeHandler(androidAnnotationEnv));
    annotationHandlers.add(new TextChangeHandler(androidAnnotationEnv));
    annotationHandlers.add(new AfterTextChangeHandler(androidAnnotationEnv));
    annotationHandlers.add(new SeekBarProgressChangeHandler(androidAnnotationEnv));
    annotationHandlers.add(new SeekBarTouchStartHandler(androidAnnotationEnv));
    annotationHandlers.add(new SeekBarTouchStopHandler(androidAnnotationEnv));
    annotationHandlers.add(new KeyDownHandler(androidAnnotationEnv));
    annotationHandlers.add(new KeyLongPressHandler(androidAnnotationEnv));
    annotationHandlers.add(new KeyMultipleHandler(androidAnnotationEnv));
    annotationHandlers.add(new KeyUpHandler(androidAnnotationEnv));
    annotationHandlers.add(new ServiceActionHandler(androidAnnotationEnv));
    annotationHandlers.add(new InstanceStateHandler(androidAnnotationEnv));
    annotationHandlers.add(new HttpsClientHandler(androidAnnotationEnv));
    annotationHandlers.add(new HierarchyViewerSupportHandler(androidAnnotationEnv));
    annotationHandlers.add(new WindowFeatureHandler(androidAnnotationEnv));
    annotationHandlers.add(new ReceiverHandler(androidAnnotationEnv));
    annotationHandlers.add(new ReceiverActionHandler(androidAnnotationEnv));
    annotationHandlers.add(new OnActivityResultHandler(androidAnnotationEnv));
    annotationHandlers.add(new PageScrolledHandler(androidAnnotationEnv));
    annotationHandlers.add(new PageScrollStateChangedHandler(androidAnnotationEnv));
    annotationHandlers.add(new PageSelectedHandler(androidAnnotationEnv));
    annotationHandlers.add(new IgnoreWhenHandler(androidAnnotationEnv));
    annotationHandlers.add(new AfterInjectHandler(androidAnnotationEnv));
    annotationHandlers.add(new AfterExtrasHandler(androidAnnotationEnv));
    annotationHandlers.add(new AfterViewsHandler(androidAnnotationEnv));
    annotationHandlers.add(new PreferenceScreenHandler(androidAnnotationEnv));
    annotationHandlers.add(new PreferenceHeadersHandler(androidAnnotationEnv));
    annotationHandlers.add(new PreferenceByKeyHandler(androidAnnotationEnv));
    annotationHandlers.add(new PreferenceChangeHandler(androidAnnotationEnv));
    annotationHandlers.add(new PreferenceClickHandler(androidAnnotationEnv));
    annotationHandlers.add(new AfterPreferencesHandler(androidAnnotationEnv));
    annotationHandlers.add(new TraceHandler(androidAnnotationEnv));
    /*
		 * WakeLockHandler must be after TraceHandler but before UiThreadHandler
		 * and BackgroundHandler
		 */
    annotationHandlers.add(new WakeLockHandler(androidAnnotationEnv));
    /*
		 * UIThreadHandler and BackgroundHandler must be after TraceHandler and
		 * IgnoreWhen
		 */
    annotationHandlers.add(new UiThreadHandler(androidAnnotationEnv));
    annotationHandlers.add(new BackgroundHandler(androidAnnotationEnv));
    /*
		 * SupposeUiThreadHandler and SupposeBackgroundHandler must be after all
		 * handlers that modifies generated method body
		 */
    annotationHandlers.add(new SupposeUiThreadHandler(androidAnnotationEnv));
    annotationHandlers.add(new SupposeBackgroundHandler(androidAnnotationEnv));
    return annotationHandlers;
}
Also used : FromHtmlHandler(org.androidannotations.internal.core.handler.FromHtmlHandler) SupposeUiThreadHandler(org.androidannotations.internal.core.handler.SupposeUiThreadHandler) PageScrollStateChangedHandler(org.androidannotations.internal.core.handler.PageScrollStateChangedHandler) InstanceStateHandler(org.androidannotations.internal.core.handler.InstanceStateHandler) EViewGroupHandler(org.androidannotations.internal.core.handler.EViewGroupHandler) ArrayList(java.util.ArrayList) EProviderHandler(org.androidannotations.internal.core.handler.EProviderHandler) FullscreenHandler(org.androidannotations.internal.core.handler.FullscreenHandler) IgnoreWhenHandler(org.androidannotations.internal.core.handler.IgnoreWhenHandler) NonConfigurationInstanceHandler(org.androidannotations.internal.core.handler.NonConfigurationInstanceHandler) KeyUpHandler(org.androidannotations.internal.core.handler.KeyUpHandler) ViewByIdHandler(org.androidannotations.internal.core.handler.ViewByIdHandler) SystemServiceHandler(org.androidannotations.internal.core.handler.SystemServiceHandler) BackgroundHandler(org.androidannotations.internal.core.handler.BackgroundHandler) SupposeBackgroundHandler(org.androidannotations.internal.core.handler.SupposeBackgroundHandler) ExtraHandler(org.androidannotations.internal.core.handler.ExtraHandler) PreferenceChangeHandler(org.androidannotations.internal.core.handler.PreferenceChangeHandler) AppHandler(org.androidannotations.internal.core.handler.AppHandler) SeekBarTouchStartHandler(org.androidannotations.internal.core.handler.SeekBarTouchStartHandler) AnimationResHandler(org.androidannotations.internal.core.handler.AnimationResHandler) EReceiverHandler(org.androidannotations.internal.core.handler.EReceiverHandler) EditorActionHandler(org.androidannotations.internal.core.handler.EditorActionHandler) AfterInjectHandler(org.androidannotations.internal.core.handler.AfterInjectHandler) PageSelectedHandler(org.androidannotations.internal.core.handler.PageSelectedHandler) BeforeTextChangeHandler(org.androidannotations.internal.core.handler.BeforeTextChangeHandler) AfterTextChangeHandler(org.androidannotations.internal.core.handler.AfterTextChangeHandler) TextChangeHandler(org.androidannotations.internal.core.handler.TextChangeHandler) AfterExtrasHandler(org.androidannotations.internal.core.handler.AfterExtrasHandler) TraceHandler(org.androidannotations.internal.core.handler.TraceHandler) SeekBarTouchStopHandler(org.androidannotations.internal.core.handler.SeekBarTouchStopHandler) KeyMultipleHandler(org.androidannotations.internal.core.handler.KeyMultipleHandler) BeforeTextChangeHandler(org.androidannotations.internal.core.handler.BeforeTextChangeHandler) EIntentServiceHandler(org.androidannotations.internal.core.handler.EIntentServiceHandler) ItemSelectHandler(org.androidannotations.internal.core.handler.ItemSelectHandler) AfterViewsHandler(org.androidannotations.internal.core.handler.AfterViewsHandler) TransactionalHandler(org.androidannotations.internal.core.handler.TransactionalHandler) EApplicationHandler(org.androidannotations.internal.core.handler.EApplicationHandler) EActivityHandler(org.androidannotations.internal.core.handler.EActivityHandler) ViewsByIdHandler(org.androidannotations.internal.core.handler.ViewsByIdHandler) FragmentByTagHandler(org.androidannotations.internal.core.handler.FragmentByTagHandler) AndroidRes(org.androidannotations.internal.core.model.AndroidRes) UiThreadHandler(org.androidannotations.internal.core.handler.UiThreadHandler) SupposeUiThreadHandler(org.androidannotations.internal.core.handler.SupposeUiThreadHandler) ColorStateListResHandler(org.androidannotations.internal.core.handler.ColorStateListResHandler) HtmlResHandler(org.androidannotations.internal.core.handler.HtmlResHandler) OnActivityResultHandler(org.androidannotations.internal.core.handler.OnActivityResultHandler) CheckedChangeHandler(org.androidannotations.internal.core.handler.CheckedChangeHandler) ColorResHandler(org.androidannotations.internal.core.handler.ColorResHandler) ReceiverHandler(org.androidannotations.internal.core.handler.ReceiverHandler) EReceiverHandler(org.androidannotations.internal.core.handler.EReceiverHandler) PreferenceByKeyHandler(org.androidannotations.internal.core.handler.PreferenceByKeyHandler) InjectMenuHandler(org.androidannotations.internal.core.handler.InjectMenuHandler) HttpsClientHandler(org.androidannotations.internal.core.handler.HttpsClientHandler) RootContextHandler(org.androidannotations.internal.core.handler.RootContextHandler) KeyDownHandler(org.androidannotations.internal.core.handler.KeyDownHandler) OptionsMenuHandler(org.androidannotations.internal.core.handler.OptionsMenuHandler) OptionsItemHandler(org.androidannotations.internal.core.handler.OptionsItemHandler) DefaultResHandler(org.androidannotations.internal.core.handler.DefaultResHandler) FragmentArgHandler(org.androidannotations.internal.core.handler.FragmentArgHandler) CustomTitleHandler(org.androidannotations.internal.core.handler.CustomTitleHandler) EServiceHandler(org.androidannotations.internal.core.handler.EServiceHandler) FocusChangeHandler(org.androidannotations.internal.core.handler.FocusChangeHandler) TouchHandler(org.androidannotations.internal.core.handler.TouchHandler) ServiceActionHandler(org.androidannotations.internal.core.handler.ServiceActionHandler) SupposeBackgroundHandler(org.androidannotations.internal.core.handler.SupposeBackgroundHandler) EFragmentHandler(org.androidannotations.internal.core.handler.EFragmentHandler) ReceiverActionHandler(org.androidannotations.internal.core.handler.ReceiverActionHandler) SharedPrefHandler(org.androidannotations.internal.core.handler.SharedPrefHandler) AnnotationHandler(org.androidannotations.handler.AnnotationHandler) HierarchyViewerSupportHandler(org.androidannotations.internal.core.handler.HierarchyViewerSupportHandler) DrawableResHandler(org.androidannotations.internal.core.handler.DrawableResHandler) PrefHandler(org.androidannotations.internal.core.handler.PrefHandler) SharedPrefHandler(org.androidannotations.internal.core.handler.SharedPrefHandler) PreferenceScreenHandler(org.androidannotations.internal.core.handler.PreferenceScreenHandler) SeekBarProgressChangeHandler(org.androidannotations.internal.core.handler.SeekBarProgressChangeHandler) EViewHandler(org.androidannotations.internal.core.handler.EViewHandler) PreferenceHeadersHandler(org.androidannotations.internal.core.handler.PreferenceHeadersHandler) AfterTextChangeHandler(org.androidannotations.internal.core.handler.AfterTextChangeHandler) PageScrolledHandler(org.androidannotations.internal.core.handler.PageScrolledHandler) AfterPreferencesHandler(org.androidannotations.internal.core.handler.AfterPreferencesHandler) PreferenceClickHandler(org.androidannotations.internal.core.handler.PreferenceClickHandler) EBeanHandler(org.androidannotations.internal.core.handler.EBeanHandler) OptionsMenuItemHandler(org.androidannotations.internal.core.handler.OptionsMenuItemHandler) WindowFeatureHandler(org.androidannotations.internal.core.handler.WindowFeatureHandler) WakeLockHandler(org.androidannotations.internal.core.handler.WakeLockHandler) ItemLongClickHandler(org.androidannotations.internal.core.handler.ItemLongClickHandler) PreferenceClickHandler(org.androidannotations.internal.core.handler.PreferenceClickHandler) ClickHandler(org.androidannotations.internal.core.handler.ClickHandler) ItemLongClickHandler(org.androidannotations.internal.core.handler.ItemLongClickHandler) ItemClickHandler(org.androidannotations.internal.core.handler.ItemClickHandler) LongClickHandler(org.androidannotations.internal.core.handler.LongClickHandler) FragmentByIdHandler(org.androidannotations.internal.core.handler.FragmentByIdHandler) ItemClickHandler(org.androidannotations.internal.core.handler.ItemClickHandler) KeyLongPressHandler(org.androidannotations.internal.core.handler.KeyLongPressHandler) ItemLongClickHandler(org.androidannotations.internal.core.handler.ItemLongClickHandler) LongClickHandler(org.androidannotations.internal.core.handler.LongClickHandler) BeanHandler(org.androidannotations.internal.core.handler.BeanHandler) EBeanHandler(org.androidannotations.internal.core.handler.EBeanHandler)

Aggregations

ArrayList (java.util.ArrayList)1 AnnotationHandler (org.androidannotations.handler.AnnotationHandler)1 AfterExtrasHandler (org.androidannotations.internal.core.handler.AfterExtrasHandler)1 AfterInjectHandler (org.androidannotations.internal.core.handler.AfterInjectHandler)1 AfterPreferencesHandler (org.androidannotations.internal.core.handler.AfterPreferencesHandler)1 AfterTextChangeHandler (org.androidannotations.internal.core.handler.AfterTextChangeHandler)1 AfterViewsHandler (org.androidannotations.internal.core.handler.AfterViewsHandler)1 AnimationResHandler (org.androidannotations.internal.core.handler.AnimationResHandler)1 AppHandler (org.androidannotations.internal.core.handler.AppHandler)1 BackgroundHandler (org.androidannotations.internal.core.handler.BackgroundHandler)1 BeanHandler (org.androidannotations.internal.core.handler.BeanHandler)1 BeforeTextChangeHandler (org.androidannotations.internal.core.handler.BeforeTextChangeHandler)1 CheckedChangeHandler (org.androidannotations.internal.core.handler.CheckedChangeHandler)1 ClickHandler (org.androidannotations.internal.core.handler.ClickHandler)1 ColorResHandler (org.androidannotations.internal.core.handler.ColorResHandler)1 ColorStateListResHandler (org.androidannotations.internal.core.handler.ColorStateListResHandler)1 CustomTitleHandler (org.androidannotations.internal.core.handler.CustomTitleHandler)1 DefaultResHandler (org.androidannotations.internal.core.handler.DefaultResHandler)1 DrawableResHandler (org.androidannotations.internal.core.handler.DrawableResHandler)1 EActivityHandler (org.androidannotations.internal.core.handler.EActivityHandler)1