Module com.azure.runtime.host
Record Class TemplateDescriptor
java.lang.Object
java.lang.Record
com.azure.runtime.host.utils.templates.TemplateDescriptor
- Record Components:
inputFilename
- The path to the input template file, relative to the project's resources directory.outputFilename
- The name of the output file to be generated by the template engine, potentially including dynamic parts based on template processing.
Represents a descriptor for template files within the Java Runtime for Azure framework. This record encapsulates the necessary
information to identify and process template files, including their input and output filenames. Template descriptors
are used by the
TemplateEngine
to generate resources based on predefined templates, facilitating the dynamic
creation of application components and configurations.
The inputFilename
specifies the location of the template file within the project's resources, while the
outputFilename
determines the name of the file generated by the template engine. This approach allows for
flexible and maintainable template management, supporting a wide range of application scaffolding and configuration
tasks.
-
Constructor Summary
ConstructorDescriptionTemplateDescriptor
(String inputFilename, String outputFilename) Creates an instance of aTemplateDescriptor
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theinputFilename
record component.Returns the value of theoutputFilename
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
TemplateDescriptor
Creates an instance of aTemplateDescriptor
record class.- Parameters:
inputFilename
- the value for theinputFilename
record componentoutputFilename
- the value for theoutputFilename
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
inputFilename
Returns the value of theinputFilename
record component.- Returns:
- the value of the
inputFilename
record component
-
outputFilename
Returns the value of theoutputFilename
record component.- Returns:
- the value of the
outputFilename
record component
-