All Downloads are FREE. Search and download functionalities are using the official Maven repository.

flair.gradle.extensions.AbstractExtension.groovy Maven / Gradle / Ivy

package flair.gradle.extensions

import flair.gradle.variants.Variant
import org.gradle.api.Project

/**
 * @author SamYStudiO ( [email protected] )
 */
public abstract class AbstractExtension implements IExtension
{
	private String name

	private Project project

	public AbstractExtension( String name , Project project )
	{
		this.name = name
		this.project = project
	}

	@Override
	public String getName()
	{
		return name
	}

	@Override
	public Project getProject()
	{
		return project
	}

	@Override
	public IExtensionManager getExtensionManager()
	{
		return project.flair as IExtensionManager
	}

	@Override
	public Object getProp( String property , Variant variant )
	{
		getProp( property , variant , false )
	}

	@Override
	public abstract Object getProp( String property , Variant variant , boolean returnDefaultIfNull )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy