Interface LowcoderServices


public interface LowcoderServices
Shared context which allows plugins to access services from Lowcoder main application
Author:
ludomikula
  • Method Details

    • registerEventListener

      void registerEventListener(Consumer<LowcoderEvent> listener)
      Registers a listener method for events emitted by Lowcoder.
      Parameters:
      listener - Listener method consuming events
    • registerEndpoints

      void registerEndpoints(String urlPrefix, List<PluginEndpoint> endpoints)
      Registers endpoints defined by plugins in Lowcoder.
      Parameters:
      urlPrefix - Prefix used for endpoints (usually plugin Id)
      endpoints - Collection of endpoints to register
    • setConfig

      void setConfig(String key, Object value)
      Sets a configuration key/value pair in Lowcoder.
      Parameters:
      key - Configuration key
      value - Configuration value
    • getConfig

      Object getConfig(String key)
      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