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
ConstructorsConstructorDescriptionTemplateDescriptor(String inputFilename, String outputFilename) Creates an instance of aTemplateDescriptorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinputFilenamerecord component.Returns the value of theoutputFilenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TemplateDescriptor
Creates an instance of aTemplateDescriptorrecord class.- Parameters:
inputFilename- the value for theinputFilenamerecord componentoutputFilename- the value for theoutputFilenamerecord 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 theinputFilenamerecord component.- Returns:
- the value of the
inputFilenamerecord component
-
outputFilename
Returns the value of theoutputFilenamerecord component.- Returns:
- the value of the
outputFilenamerecord component
-