Class Configuration


  • public class Configuration
    extends Object
    Holds configuration data for the <configuration> tag used to configure the plugin in the pom.xml file.
    • Constructor Detail

      • Configuration

        public Configuration()
    • Method Detail

      • setType

        public void setType​(ConfigurationType type)
        Parameters:
        type - Configuration type.
      • getHome

        public String getHome()
        Returns:
        Container home.
      • setHome

        public void setHome​(String home)
        Parameters:
        home - Container home.
      • getProperties

        public Map<String,​String> getProperties()
        Returns:
        Container properties.
      • setProperties

        public void setProperties​(Map<String,​String> properties)
        Parameters:
        properties - Container properties.
      • getPropertiesFile

        public File getPropertiesFile()
        Returns:
        Container properties loaded from file.
      • setPropertiesFile

        public void setPropertiesFile​(File propertiesFile)
        Parameters:
        propertiesFile - Container properties loaded from file.
      • getConfigfiles

        public FileConfig[] getConfigfiles()
        Returns:
        Configuration files.
      • setConfigfiles

        public void setConfigfiles​(FileConfig[] configfiles)
        Parameters:
        configfiles - Configuration files.
      • getFiles

        public FileConfig[] getFiles()
        Returns:
        Extra files.
      • setFiles

        public void setFiles​(FileConfig[] fileConfigs)
        Parameters:
        fileConfigs - Extra files.
      • getXmlReplacements

        public XmlReplacement[] getXmlReplacements()
        Returns:
        XML replacements.
      • setXmlReplacements

        public void setXmlReplacements​(XmlReplacement[] xmlReplacements)
        Parameters:
        xmlReplacements - XML replacements.
      • getImplementation

        public String getImplementation()
        Returns:
        Implementation name.
      • setImplementation

        public void setImplementation​(String implementation)
        Parameters:
        implementation - Implementation name.
      • getDatasources

        public DataSource[] getDatasources()
        Returns:
        Extra datasources.
      • setDatasources

        public void setDatasources​(DataSource[] datasources)
        Parameters:
        datasources - Extra datasources.
      • getResources

        public Resource[] getResources()
        Returns:
        Extra resources.
      • setResources

        public void setResources​(Resource[] rlist)
        Parameters:
        rlist - Extra resources.
      • getUsers

        public User[] getUsers()
        Returns:
        Users.
      • setUsers

        public void setUsers​(User[] users)
        Parameters:
        users - Users.
      • createConfiguration

        public Configuration createConfiguration​(String containerId,
                                                 ContainerType containerType,
                                                 Deployable[] deployables,
                                                 CargoProject project,
                                                 org.apache.maven.project.MavenProject mavenProject,
                                                 String contextKey,
                                                 org.apache.maven.settings.Settings mavenSettings,
                                                 org.apache.maven.plugin.logging.Log log)
                                          throws org.apache.maven.plugin.MojoExecutionException
        Creates a configuration.
        Parameters:
        containerId - Container id.
        containerType - Container type.
        deployables - Deployables to deploy.
        project - Cargo project.
        mavenProject - Maven project.
        contextKey - Container context key, which can be used to start, stop, configure or deploy to the same Cargo container (together with its configuration) from different Maven artifacts.
        mavenSettings - Maven settings.
        log - Maven logger.
        Returns:
        Configuration.
        Throws:
        org.apache.maven.plugin.MojoExecutionException - If configuration creation fails.