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

net.flexmojos.oss.plugin.air.packager.PackagerFactory Maven / Gradle / Ivy

package net.flexmojos.oss.plugin.air.packager;

import org.codehaus.plexus.component.annotations.Component;
import org.codehaus.plexus.component.annotations.Requirement;

import java.util.Map;

/**
 * Created by christoferdutz on 16.07.15.
 */
@Component( role = PackagerFactory.class )
public class PackagerFactory {

    @Requirement(role = Packager.class)
    private Map packagers;

    public Packager getPackager(PackagingRequest packagingRequest) {
        //return new MacPackager();
        return packagers.get(packagingRequest.getTargetPlatform().toLowerCase());
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy