Groovy Documentation

com.jcandksolutions.gradle.androidunittest
[Groovy] Class MainHandler

java.lang.Object
  com.jcandksolutions.gradle.androidunittest.MainHandler

abstract class MainHandler

Base class that coordinates the configuration of the project. This class should trigger the creation of the Configurations, SourceSets, Extension, Tasks and Model.


Field Summary
protected AndroidUnitTestPluginExtension mExtension

protected Logger mLogger

protected ModelManager mModelManager

protected DependencyProvider mProvider

protected TaskManager mTaskManager

 
Constructor Summary
MainHandler(DependencyProvider provider)

Instantiates a MainHandler.

 
Method Summary
protected VariantWrapper createVariantWrapper(BaseVariant variant)

Creates a new VariantWrapper instance.

protected boolean isVariantInvalid(BaseVariant baseVariant)

Checks if the variant is invalid and should not process it.

void run()

Executes the handler.

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Field Detail

mExtension

protected final AndroidUnitTestPluginExtension mExtension


mLogger

protected final Logger mLogger


mModelManager

protected final ModelManager mModelManager


mProvider

protected final DependencyProvider mProvider


mTaskManager

protected final TaskManager mTaskManager


 
Constructor Detail

MainHandler

MainHandler(DependencyProvider provider)
Instantiates a MainHandler.
Parameters:
provider - The Dependency Provider for the plugin.


 
Method Detail

createVariantWrapper

protected VariantWrapper createVariantWrapper(BaseVariant variant)
Creates a new VariantWrapper instance. Inheritors must implement this method.
Returns:
The wrapper.
Parameters:
variant - The Variant to wrap.


isVariantInvalid

protected boolean isVariantInvalid(BaseVariant baseVariant)
Checks if the variant is invalid and should not process it.
Returns:
true] if invalid, {@code false otherwise.
Parameters:
baseVariant - The Variant to check.


run

void run()
Executes the handler. It will trigger the creation of the Configurations, SourceSets, Extension, Tasks and Model.


 

Groovy Documentation