java.lang.Object
org.mule.runtime.extension.api.resources.GeneratedResource

public final class GeneratedResource extends Object
A resource that is generated in the context of an ExtensionModel's build process
Since:
1.0
  • Constructor Details

    • GeneratedResource

      public GeneratedResource(String path, byte[] content)
      Creates a new instance
      Parameters:
      path - the resource's path
      content - the resource's content
  • Method Details

    • getPath

      public String getPath()
      The path in which the resource will be found after being generated. Also serves as the resource's primary key
      Returns:
      a String. Cannot empty nor null
    • getContent

      public byte[] getContent()
      The resource's content
      Returns:
      a non null byte