Class MicroserviceProject<T extends MicroserviceProject<T>>
java.lang.Object
com.azure.runtime.host.resources.Resource<T>
com.azure.runtime.host.resources.Container<T>
com.azure.runtime.host.extensions.microservice.common.resources.MicroserviceProject<T>
- All Implemented Interfaces:
IntrospectiveResource,ResourceTrait<T>,ResourceWithArguments<T>,ResourceWithEndpoints<T>,ResourceWithEnvironment<T>,ResourceWithLifecycle,ResourceWithReference<T>,ResourceWithTemplate<T>,SelfAware<T>
- Direct Known Subclasses:
MicronautProject,QuarkusProject,SpringProject
public class MicroserviceProject<T extends MicroserviceProject<T>>
extends Container<T>
implements ResourceWithTemplate<T>, IntrospectiveResource, ResourceWithReference<T>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.azure.runtime.host.resources.Container
Container.BindMount, Container.Volume -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal StringgetPath()voidbooleanvoidPrior to writing the resource to the manifest, onResourcePrecommit() is called on all resources in the order they were added to the distributed application.Processes the template associated with this resource.self()Returns a reference to the object that implements this interface.The path to the project file.Methods inherited from class com.azure.runtime.host.resources.Container
withBindMount, withEntryPoint, withImage, withVolumeMethods inherited from class com.azure.runtime.host.resources.Resource
copyInto, getAnnotations, getName, getType, withAnnotationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.runtime.host.resources.traits.ResourceWithArguments
withArgument, withArguments, withArgumentsMethods inherited from interface com.azure.runtime.host.resources.traits.ResourceWithEndpoints
getEndpoint, getEndpoints, withExternalHttpEndpoints, withHttpEndpoint, withHttpEndpoint, withHttpsEndpoint, withHttpsEndpointMethods inherited from interface com.azure.runtime.host.resources.traits.ResourceWithEnvironment
withEnvironment, withEnvironment, withEnvironment, withReference, withReference, withReferenceMethods inherited from interface com.azure.runtime.host.resources.traits.ResourceWithLifecycle
onResourceAdded, onResourceRemovedMethods inherited from interface com.azure.runtime.host.resources.traits.ResourceWithReference
withReference
-
Constructor Details
-
MicroserviceProject
-
-
Method Details
-
onResourcePrecommit
public void onResourcePrecommit()Description copied from interface:ResourceWithLifecyclePrior to writing the resource to the manifest, onResourcePrecommit() is called on all resources in the order they were added to the distributed application.- Specified by:
onResourcePrecommitin interfaceResourceWithLifecycle
-
introspect
public void introspect()- Specified by:
introspectin interfaceIntrospectiveResource
-
withPath
The path to the project file. Relative paths are interpreted as being relative to the location of the manifest file.- Parameters:
path-- Returns:
-
getPath
-
withOpenTelemetry
-
isOpenTelemetryEnabled
public boolean isOpenTelemetryEnabled() -
self
Description copied from interface:SelfAwareReturns a reference to the object that implements this interface.- Specified by:
selfin interfaceResourceWithEndpoints<T extends MicroserviceProject<T>>- Specified by:
selfin interfaceSelfAware<T extends MicroserviceProject<T>>- Overrides:
selfin classContainer<T extends MicroserviceProject<T>>- Returns:
- A reference to the object that implements this interface.
-
processTemplate
Description copied from interface:ResourceWithTemplateProcesses the template associated with this resource.- Specified by:
processTemplatein interfaceResourceWithTemplate<T extends MicroserviceProject<T>>- Returns:
- A list of template file outputs.
-