com.googlecode.androidannotations.annotations
Annotation Type RootContext


@Retention(value=SOURCE)
@Target(value=FIELD)
public @interface RootContext

Use it on Context fields in EBean classes The field MUST be of a type that extends android.content.Context. This field may not be injected at runtime if the context used to create the bean is not of the appropriate type. For example, if you create a new instance of the bean using a Service context, and you use RootContext on a field that extends Activity, this field will be null at runtime.



Copyright © 2010-2012. All Rights Reserved.