Package jrpc.clightning.plugins
Interface ICLightningPlugin
-
- All Known Implementing Classes:
CLightningPlugin
public interface ICLightningPlugin
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addInterceptorAfterRPCMethod(Interceptor interceptor)
void
addInterceptorBeforeRPCMethod(Interceptor interceptor)
void
addParameter(java.lang.String key, java.lang.Object value)
void
addRPCMethod(AbstractRPCMethod method)
CLightingPluginConfig
getConfigs()
java.util.List<java.lang.String>
getHooks()
<T> T
getParameter(java.lang.String key)
java.util.List<AbstractRPCMethod>
getRpcMethods()
java.util.List<java.lang.String>
getSubscriptions()
boolean
hasParameter(java.lang.String key)
boolean
hasParametersReady()
boolean
isDynamic()
void
log(PluginLog level, java.lang.Object json)
void
log(PluginLog level, java.lang.String logMessage)
void
log(PluginLog level, CLightningJsonObject json)
void
onInit(ICLightningPlugin plugin, CLightningJsonObject request, CLightningJsonObject response)
void
setConfigs(CLightingPluginConfig config)
void
start()
-
-
-
Method Detail
-
start
void start()
-
onInit
void onInit(ICLightningPlugin plugin, CLightningJsonObject request, CLightningJsonObject response)
-
addRPCMethod
void addRPCMethod(AbstractRPCMethod method)
-
addInterceptorBeforeRPCMethod
void addInterceptorBeforeRPCMethod(Interceptor interceptor)
-
addInterceptorAfterRPCMethod
void addInterceptorAfterRPCMethod(Interceptor interceptor)
-
getRpcMethods
java.util.List<AbstractRPCMethod> getRpcMethods()
-
getSubscriptions
java.util.List<java.lang.String> getSubscriptions()
-
getHooks
java.util.List<java.lang.String> getHooks()
-
isDynamic
boolean isDynamic()
-
log
void log(PluginLog level, java.lang.String logMessage)
-
log
void log(PluginLog level, CLightningJsonObject json)
-
log
void log(PluginLog level, java.lang.Object json)
-
addParameter
void addParameter(java.lang.String key, java.lang.Object value)
-
setConfigs
void setConfigs(CLightingPluginConfig config)
-
getConfigs
CLightingPluginConfig getConfigs()
-
getParameter
<T> T getParameter(java.lang.String key)
-
hasParameter
boolean hasParameter(java.lang.String key)
-
hasParametersReady
boolean hasParametersReady()
-
-