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

flair.gradle.extensions.factories.PlatformExtensionFactory.groovy Maven / Gradle / Ivy

package flair.gradle.extensions.factories

import flair.gradle.extensions.IPlatformContainerExtension
import flair.gradle.extensions.PlatformContainerExtension
import flair.gradle.variants.Platform
import org.gradle.api.Project
import org.gradle.api.plugins.ExtensionAware

/**
 * @author SamYStudiO ( [email protected] )
 */
public class PlatformExtensionFactory implements IExtensionFactory
{
	private Platform platform

	public PlatformExtensionFactory( Platform platform )
	{
		this.platform = platform
	}

	@Override
	public IPlatformContainerExtension create( ExtensionAware parent , Project project )
	{
		return parent.extensions.create( platform.name.toLowerCase( ) , PlatformContainerExtension , platform.name.toLowerCase( ) , project , platform )
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy