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
public abstract class ComponentController<C extends ComponentController<C,T>,T> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanattachedprotected Tcomponentprotected android.content.Intentintentprotected Cmyselfprotected ShadowLoopershadowMainLooper
-
Constructor Summary
Constructors Constructor Description ComponentController(T component)ComponentController(T component, android.content.Intent intent)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Ccreate()abstract Cdestroy()Tget()android.content.IntentgetIntent()protected CinvokeWhilePaused(java.lang.String methodName, org.robolectric.util.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 android.content.Intent intent
-
attached
protected boolean attached
-
-
Method Detail
-
get
public T get()
-
create
public abstract C create()
-
destroy
public abstract C destroy()
-
getIntent
public android.content.Intent getIntent()
-
invokeWhilePaused
protected C invokeWhilePaused(java.lang.String methodName, org.robolectric.util.ReflectionHelpers.ClassParameter<?>... classParameters)
-
-