JavaAppResource
Classnet10.0
Represents a Java application resource in the distributed application model.
namespace Aspire.Hosting.Java;
public class JavaAppResource : Aspire.Hosting.ApplicationModel.ExecutableResource, Aspire.Hosting.ApplicationModel.IContainerFilesDestinationResource, Aspire.Hosting.ApplicationModel.IResource, Aspire.Hosting.ApplicationModel.IResourceWithEndpoints, Aspire.Hosting.ApplicationModel.IResourceWithEnvironment, Aspire.Hosting.IResourceWithServiceDiscovery, Aspire.Hosting.Java.IJavaAppResource{ // ...}ExecutableResourceIContainerFilesDestinationResourceIResourceIResourceWithEndpointsIResourceWithEnvironmentIResourceWithServiceDiscoveryIJavaAppResource
Remarks
Section titled Remarks The command is always
java. When the application is launched through a Maven goal or a Gradle task, the wrapper script replaces that command; see WithMavenGoal and WithGradleTask. Constructors1
Section titled Constructors Represents a Java application resource in the distributed application model.