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
-
Method Summary
Modifier and TypeMethodDescriptionfinal String
getPath()
void
boolean
void
Prior 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, withVolume
Methods inherited from class com.azure.runtime.host.resources.Resource
copyInto, getAnnotations, getName, getType, withAnnotation
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.runtime.host.resources.traits.ResourceWithArguments
withArgument, withArguments, withArguments
Methods inherited from interface com.azure.runtime.host.resources.traits.ResourceWithEndpoints
getEndpoint, getEndpoints, withExternalHttpEndpoints, withHttpEndpoint, withHttpEndpoint, withHttpsEndpoint, withHttpsEndpoint
Methods inherited from interface com.azure.runtime.host.resources.traits.ResourceWithEnvironment
withEnvironment, withEnvironment, withEnvironment, withReference, withReference, withReference
Methods inherited from interface com.azure.runtime.host.resources.traits.ResourceWithLifecycle
onResourceAdded, onResourceRemoved
Methods inherited from interface com.azure.runtime.host.resources.traits.ResourceWithReference
withReference
-
Constructor Details
-
MicroserviceProject
-
-
Method Details
-
onResourcePrecommit
public void onResourcePrecommit()Description copied from interface:ResourceWithLifecycle
Prior 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:
onResourcePrecommit
in interfaceResourceWithLifecycle
-
introspect
public void introspect()- Specified by:
introspect
in 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:SelfAware
Returns a reference to the object that implements this interface.- Specified by:
self
in interfaceResourceWithEndpoints<T extends MicroserviceProject<T>>
- Specified by:
self
in interfaceSelfAware<T extends MicroserviceProject<T>>
- Overrides:
self
in classContainer<T extends MicroserviceProject<T>>
- Returns:
- A reference to the object that implements this interface.
-
processTemplate
Description copied from interface:ResourceWithTemplate
Processes the template associated with this resource.- Specified by:
processTemplate
in interfaceResourceWithTemplate<T extends MicroserviceProject<T>>
- Returns:
- A list of template file outputs.
-