Package io.hawt.springboot
Class HawtioPlugin
java.lang.Object
io.hawt.springboot.HawtioPlugin
Hawtio v3 remote plugin for Spring Boot.
Hawtio v3 plugin system is based on Webpack Module Federation.
This interface is the Java representation of
HawtioRemote
interface in hawtio-next project, which is compatible with
ImportRemoteOptions
interface defined in @module-federation/utilities package.
-
Constructor Summary
ConstructorsConstructorDescriptionHawtioPlugin
(String scope, String module) Use a plugin that's located in the application itself.HawtioPlugin
(String scope, String module, String url) Use a plugin from remote repository. -
Method Summary
Modifier and TypeMethodDescriptiongetScope()
getUrl()
void
setBustRemoteEntryCache
(Boolean bustRemoteEntryCache) void
void
setPluginEntry
(String pluginEntry) void
setRemoteEntryFileName
(String remoteEntryFileName) void
void
-
Constructor Details
-
HawtioPlugin
Use a plugin from remote repository. These are the parameters required to load a remote Hawtio plugin (a.k.a. Module Federation remote module):- Parameters:
url
- The URL of the remote entry for the plugin. This must be the same location as the Hawtio console.scope
- The name of the container defined at Webpack ModuleFederationPlugin. See also: sample-plugin/craco.config.jsmodule
- The path exposed from Webpack ModuleFederationPlugin. See also: sample-plugin/craco.config.js
-
HawtioPlugin
Use a plugin that's located in the application itself. This constructor automatically uses address of the application. These are the parameters required to load a remote Hawtio plugin (a.k.a. Module Federation remote module):- Parameters:
scope
- The name of the container defined at Webpack ModuleFederationPlugin. See also: sample-plugin/craco.config.jsmodule
- The path exposed from Webpack ModuleFederationPlugin. See also: sample-plugin/craco.config.js
-
-
Method Details
-
getUrl
-
setUrl
-
getScope
-
setScope
-
getModule
-
setModule
-
getRemoteEntryFileName
-
setRemoteEntryFileName
-
getBustRemoteEntryCache
-
setBustRemoteEntryCache
-
getPluginEntry
-
setPluginEntry
-