public interface CockpitPlugin
A implementation of this SPI publishes
Plugin developers should not use this interface directly but use
AbstractCockpitPlugin
as a base class.
AbstractCockpitPlugin
Modifier and Type | Method and Description |
---|---|
String |
getAssetDirectory()
Returns a uri to a plugins asset directory.
|
String |
getId()
Returns the id of this plugin.
|
List<String> |
getMappingFiles()
Returns a list of mapping files that define the custom queries
provided by this plugin.
|
Set<Class<?>> |
getResourceClasses()
Returns a set of JAX-RS resource classes that extend the cockpit rest API.
|
Set<Class<?>> getResourceClasses()
Typically, a plugin publishes its API via a subclass of AbstractPluginRootResource
.
List<String> getMappingFiles()
The mapping files define additional MyBatis queries that can be executed by the plugin.
Inside the plugin the queries may be executed via the QueryService
that may be obtained through
Cockpit.getQueryService(java.lang.String)
.
String getAssetDirectory()
String getId()
Copyright © 2015. All rights reserved.