public class DefaultApplication extends Object implements Application
RemoteApplicationInvoker.ApplicationRemoteFunction<R>| Constructor and Description |
|---|
DefaultApplication(URL applicationUrlContent,
ToolingArtifactContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
<R> R |
evaluateWithRemoteApplication(RemoteApplicationInvoker.ApplicationRemoteFunction<R> function)
Evaluates the given function in the context of a remote application from Mule Runtime.
|
org.mule.runtime.config.spring.api.dsl.model.ApplicationModel |
getApplicationModel() |
String |
getApplicationName() |
org.mule.runtime.module.artifact.api.classloader.ArtifactClassLoader |
getArtifactClassLoader() |
List<org.mule.runtime.api.meta.model.ExtensionModel> |
getExtensionModels() |
void |
setContext(ToolingArtifactContext context)
Sets the
ToolingArtifactContext to be used by this Application. |
String |
toString() |
public DefaultApplication(URL applicationUrlContent, ToolingArtifactContext context)
public void setContext(ToolingArtifactContext context)
ApplicationToolingArtifactContext to be used by this Application. This means that if the Runtime Tooling
Service API has changed and it was cached the remote application deployed it will be deployed again.setContext in interface Applicationcontext - ToolingArtifactContext to be used by this Applicationpublic List<org.mule.runtime.api.meta.model.ExtensionModel> getExtensionModels()
getExtensionModels in interface ApplicationExtensionModel for the application.public String getApplicationName()
getApplicationName in interface Applicationpublic org.mule.runtime.module.artifact.api.classloader.ArtifactClassLoader getArtifactClassLoader()
getArtifactClassLoader in interface ApplicationArtifactClassLoader for the application.public <R> R evaluateWithRemoteApplication(RemoteApplicationInvoker.ApplicationRemoteFunction<R> function)
RemoteApplicationInvokerNoSuchApplicationException
it will do a deploy and invoke the function.evaluateWithRemoteApplication in interface RemoteApplicationInvokerR - the type for the result of the function.function - to be executed against a deployed application.<R>public void dispose()
dispose in interface org.mule.tooling.client.api.Disposablepublic org.mule.runtime.config.spring.api.dsl.model.ApplicationModel getApplicationModel()
getApplicationModel in interface ApplicationApplicationModel for the application.Copyright © 2017 MuleSoft, Inc.. All rights reserved.