Class GeneratedResource
java.lang.Object
org.mule.runtime.extension.api.resources.GeneratedResource
A resource that is generated in the context of an
ExtensionModel's build process- Since:
- 1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]The resource's contentgetPath()The path in which the resource will be found after being generated.
-
Constructor Details
-
GeneratedResource
Creates a new instance- Parameters:
path- the resource's pathcontent- the resource's content
-
-
Method Details
-
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 nornull
-
getContent
public byte[] getContent()The resource's content- Returns:
- a non
nullbyte
-