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 voidaddInterceptorAfterRPCMethod(Interceptor interceptor)voidaddInterceptorBeforeRPCMethod(Interceptor interceptor)voidaddParameter(java.lang.String key, java.lang.Object value)voidaddRPCMethod(AbstractRPCMethod method)CLightingPluginConfiggetConfigs()java.util.List<java.lang.String>getHooks()<T> TgetParameter(java.lang.String key)java.util.List<AbstractRPCMethod>getRpcMethods()java.util.List<java.lang.String>getSubscriptions()booleanhasParameter(java.lang.String key)booleanhasParametersReady()booleanisDynamic()voidlog(PluginLog level, java.lang.Object json)voidlog(PluginLog level, java.lang.String logMessage)voidlog(PluginLog level, CLightningJsonObject json)voidonInit(ICLightningPlugin plugin, CLightningJsonObject request, CLightningJsonObject response)voidsetConfigs(CLightingPluginConfig config)voidstart()
-
-
-
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()
-
-