Class ComponentController<C extends ComponentController<C,T>,T>
- java.lang.Object
-
- org.robolectric.android.controller.ComponentController<C,T>
-
- Direct Known Subclasses:
ActivityController
,BackupAgentController
,FragmentController
,IntentServiceController
,ServiceController
,SupportFragmentController
public abstract class ComponentController<C extends ComponentController<C,T>,T> extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
attached
protected T
component
protected Intent
intent
protected C
myself
protected ShadowLooper
shadowMainLooper
-
Constructor Summary
Constructors Constructor Description ComponentController(T component)
ComponentController(T component, Intent intent)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract C
create()
abstract C
destroy()
T
get()
Intent
getIntent()
protected C
invokeWhilePaused(Runnable runnable)
protected C
invokeWhilePaused(String methodName, ReflectionHelpers.ClassParameter<?>... classParameters)
-
-
-
Field Detail
-
myself
protected final C extends ComponentController<C,T> myself
-
component
protected T component
-
shadowMainLooper
protected final ShadowLooper shadowMainLooper
-
intent
protected Intent intent
-
attached
protected boolean attached
-
-