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

net.jangaroo.jooc.mvnplugin.MavenSenchaProfileConfiguration Maven / Gradle / Ivy

There is a newer version: 4.1.17
Show newest version
package net.jangaroo.jooc.mvnplugin;

import com.google.common.collect.ImmutableList;
import net.jangaroo.jooc.mvnplugin.sencha.SenchaProfileConfiguration;
import org.apache.maven.plugins.annotations.Parameter;

import javax.annotation.Nonnull;
import java.util.Collections;
import java.util.List;

public class MavenSenchaProfileConfiguration implements SenchaProfileConfiguration {

  /**
   * @see SenchaProfileConfiguration#getAdditionalCssNonBundle()
   */
  @Parameter
  private List additionalCssNonBundle;

  /**
   * @see SenchaProfileConfiguration#getAdditionalJsNonBundle()
   */
  @Parameter
  private List additionalJsNonBundle;

  /**
   * @see SenchaProfileConfiguration#getAdditionalCssIncludeInBundle()
   */
  @Parameter
  private List additionalCssIncludeInBundle;

  /**
   * @see SenchaProfileConfiguration#getAdditionalJsIncludeInBundle()
   */
  @Parameter
  private List additionalJsIncludeInBundle;

  /**
   * @see SenchaProfileConfiguration#getRequiredClasses()
   */
  @Parameter
  private List requiredClasses;

  @Nonnull
  @Override
  public List getAdditionalCssNonBundle() {
    return additionalCssNonBundle != null ? ImmutableList.copyOf(additionalCssNonBundle) : Collections.emptyList();
  }

  @Nonnull
  @Override
  public List getAdditionalJsNonBundle() {
    return additionalJsNonBundle != null ? ImmutableList.copyOf(additionalJsNonBundle) : Collections.emptyList();
  }

  @Nonnull
  @Override
  public List getAdditionalCssIncludeInBundle() {
    return additionalCssIncludeInBundle != null ? ImmutableList.copyOf(additionalCssIncludeInBundle) : Collections.emptyList();
  }

  @Nonnull
  @Override
  public List getAdditionalJsIncludeInBundle() {
    return additionalJsIncludeInBundle != null ? ImmutableList.copyOf(additionalJsIncludeInBundle) : Collections.emptyList();
  }

  @Nonnull
  @Override
  public List getRequiredClasses() {
    return requiredClasses == null ? Collections.emptyList() : requiredClasses;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy