public abstract class AbstractAppPlugin extends Object implements AppPlugin
AppPlugin SPI. Should be used by| Constructor and Description |
|---|
AbstractAppPlugin() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAssetDirectory()
Returns a uri to a plugin resources directory.
|
Set<Class<?>> |
getResourceClasses()
Returns a set of JAX-RS resource classes that extend the rest API.
|
List<PluginResourceOverride> |
getResourceOverrides()
Allows providing a list of
resource overrides. |
public String getAssetDirectory()
This implementation assumes that the resources are provided in the directory plugin-webapp/PLUGIN_ID,
absolute to the root directory.
getAssetDirectory in interface AppPluginpublic Set<Class<?>> getResourceClasses()
AppPlugin
Typically, a plugin publishes its API via a subclass of AbstractPluginRootResource.
getResourceClasses in interface AppPluginpublic List<PluginResourceOverride> getResourceOverrides()
AppPluginresource overrides. Resource overrides allow
to conditionally override the static resources provided by other plugins.getResourceOverrides in interface AppPluginPluginResourceOverride implementations.Copyright © 2021. All rights reserved.