Class Resource


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

      • Resource

        public Resource()
    • Method Detail

      • getName

        public String getName()
        Returns:
        Resource name.
      • setName

        public void setName​(String name)
        Parameters:
        name - Resource name.
      • getType

        public String getType()
        Returns:
        Resource type.
      • setType

        public void setType​(String type)
        Parameters:
        type - Resource type.
      • getParameters

        public Map<String,​String> getParameters()
        Returns:
        Resource parameters.
      • setParameters

        public void setParameters​(Map<String,​String> parameters)
        Parameters:
        parameters - Resource parameters.
      • createResource

        public Resource createResource​(String containerId,
                                       CargoProject project)
        Create the resource object.
        Parameters:
        containerId - Container identifier.
        project - Cargo project.
        Returns:
        Cargo resource object.