Module com.azure.runtime.host
Interface ResourceWithTemplate<T extends Resource<T> & ResourceWithTemplate<T>>
- Type Parameters:
T
-
- All Superinterfaces:
ResourceTrait<T>
,SelfAware<T>
- All Known Implementing Classes:
AzureBicepResource
,AzureEventHubsResource
,AzureOpenAIResource
,AzureStorageResource
,EurekaServiceDiscovery
,MicronautProject
,MicroserviceProject
,QuarkusProject
,SpringProject
public interface ResourceWithTemplate<T extends Resource<T> & ResourceWithTemplate<T>>
extends ResourceTrait<T>
A resource that has a template associated with it. This may be one or more bicep files, microservice projects (e.g.
Spring Boot, Quarkus, etc.), or other types of templates. For each of the template files, we defer to Apache Velocity
to process the template and generate the final output. Where this output is placed is determined by the resource
itself - sometimes it is a temporary location (which the app host will tidy up), sometimes it will be the output
location specified by the app host user.
-
Method Summary
Modifier and TypeMethodDescriptionProcesses the template associated with this resource.
-
Method Details
-
processTemplate
List<TemplateFileOutput> processTemplate()Processes the template associated with this resource.- Returns:
- A list of template file outputs.
-