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.
      • getSetProperties

        public List<String> getSetProperties()
        Returns:
        List of properties set using properties file or directly.
      • 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)
                                          throws org.apache.maven.plugin.MojoExecutionException
        Creates a configuration.
        Parameters:
        containerId - Container id.
        containerType - Container type.
        deployables - Deployables to deploy.
        project - Cargo project.
        Returns:
        Configuration.
        Throws:
        org.apache.maven.plugin.MojoExecutionException - If configuration creation fails.