
package griffon.builder.javafx;

import griffon.builder.javafx.factory.FontAwesomeIconFactory;
import griffon.inject.DependsOn;
import groovy.util.Factory;
import org.codehaus.griffon.runtime.groovy.view.AbstractBuilderCustomizer;

import javax.inject.Named;
import java.util.LinkedHashMap;
import java.util.Map;

/**
 * @author Andres Almiray
 */
@DependsOn({"javafx"})
@Named("fontawesome-javafx")
public class FontAwesomeJavaFXBuilderCustomizer extends AbstractBuilderCustomizer {
    public FontAwesomeJavaFXBuilderCustomizer() {
        Map<String, Factory> factories = new LinkedHashMap<>();
        factories.put("fontAwesomeIcon", new FontAwesomeIconFactory());
        setFactories(factories);
    }
}
