Class ProvisioningAction

java.lang.Object
org.wildfly.prospero.actions.ProvisioningAction

public class ProvisioningAction extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    ProvisioningAction(Path installDir, MavenOptions mvnOptions, Console console)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    getPendingLicenses(org.jboss.galleon.api.config.GalleonProvisioningConfig provisioningConfig, List<org.wildfly.channel.Channel> channels)
    List agreements and licenses that need to be accepted before installing the required Feature Packs.
    void
    provision(org.jboss.galleon.api.config.GalleonProvisioningConfig provisioningConfig, List<org.wildfly.channel.Channel> channels)
    Provision installation according to given ProvisioningDefinition.
    void
    provision(org.jboss.galleon.api.config.GalleonProvisioningConfig provisioningConfig, List<org.wildfly.channel.Channel> channels, List<org.wildfly.channel.Repository> overwriteRepositories)
    Provision installation according to given ProvisioningDefinition.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ProvisioningAction

      public ProvisioningAction(Path installDir, MavenOptions mvnOptions, Console console) throws org.jboss.galleon.ProvisioningException
      Throws:
      org.jboss.galleon.ProvisioningException
  • Method Details

    • provision

      public void provision(org.jboss.galleon.api.config.GalleonProvisioningConfig provisioningConfig, List<org.wildfly.channel.Channel> channels) throws MalformedURLException, org.jboss.galleon.ProvisioningException, OperationException
      Provision installation according to given ProvisioningDefinition. NOTE: All required licenses are assumed to be accepted by calling this method.
      Parameters:
      provisioningConfig - prospero provisioning definition
      channels - list of channels to resolve installed artifacts
      Throws:
      MalformedURLException
      org.jboss.galleon.ProvisioningException
      OperationException
    • provision

      public void provision(org.jboss.galleon.api.config.GalleonProvisioningConfig provisioningConfig, List<org.wildfly.channel.Channel> channels, List<org.wildfly.channel.Repository> overwriteRepositories) throws org.jboss.galleon.ProvisioningException, OperationException, MalformedURLException
      Provision installation according to given ProvisioningDefinition. The overrideRepositories replace any repositories defined in channels for duration of this operation. They are not persisted in the provisioned configuration. NOTE: All required licenses are assumed to be accepted by calling this method.
      Parameters:
      provisioningConfig - prospero provisioning definition
      channels - list of channels to resolve installed artifacts
      overwriteRepositories - list of repositories to resolve installed artifacts from. They do not alter persisted channel definitions.
      Throws:
      org.jboss.galleon.ProvisioningException
      OperationException
      MalformedURLException
    • getPendingLicenses

      public List<License> getPendingLicenses(org.jboss.galleon.api.config.GalleonProvisioningConfig provisioningConfig, List<org.wildfly.channel.Channel> channels) throws OperationException
      List agreements and licenses that need to be accepted before installing the required Feature Packs.
      Parameters:
      provisioningConfig - - list of Feature Packs being installed
      channels - - list of channels used to resolve the Feature Packs
      Returns:
      - list of License, or empty list if no licenses were required
      Throws:
      OperationException