public abstract class AbstractAppPlugin extends Object implements AppPlugin
AppPlugin
SPI. Should be used byConstructor 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 AppPlugin
public Set<Class<?>> getResourceClasses()
AppPlugin
Typically, a plugin publishes its API via a subclass of AbstractPluginRootResource
.
getResourceClasses
in interface AppPlugin
public List<PluginResourceOverride> getResourceOverrides()
AppPlugin
resource overrides
. Resource overrides allow
to conditionally override the static resources provided by other plugins.getResourceOverrides
in interface AppPlugin
PluginResourceOverride
implementations.Copyright © 2021. All rights reserved.