Package org.lowcoder.plugin.api
Interface LowcoderServices
public interface LowcoderServices
Shared context which allows plugins to access services from Lowcoder main application
- Author:
- ludomikula
-
Method Summary
Modifier and TypeMethodDescriptionReads the value of a configuration property.voidregisterEndpoints(String urlPrefix, List<PluginEndpoint> endpoints) Registers endpoints defined by plugins in Lowcoder.voidregisterEventListener(Consumer<LowcoderEvent> listener) Registers a listener method for events emitted by Lowcoder.voidSets a configuration key/value pair in Lowcoder.
-
Method Details
-
registerEventListener
Registers a listener method for events emitted by Lowcoder.- Parameters:
listener- Listener method consuming events
-
registerEndpoints
Registers endpoints defined by plugins in Lowcoder.- Parameters:
urlPrefix- Prefix used for endpoints (usually plugin Id)endpoints- Collection of endpoints to register
-
setConfig
Sets a configuration key/value pair in Lowcoder.- Parameters:
key- Configuration keyvalue- Configuration value
-
getConfig
Reads the value of a configuration property.- Parameters:
key- Configuration key to read value for- Returns:
- Configuration value or null if it does not exist
-