@Bean(name="commands", parent=MonitorComponent.class, active=true) public class AdHocCommandMonitorModule extends AdHocCommandModule implements Initializable
AdHocCommandModule.ScriptCommandProcessor
COMMAND_PATH, commandsManager, CRIT, ID, scriptProcessor, XMLNS
eventBus, log, writer
EMPTY_FEATURES
Constructor and Description |
---|
AdHocCommandMonitorModule() |
Modifier and Type | Method and Description |
---|---|
void |
initialize()
Method will be called, when bean will be created, configured and ready to use.
|
void |
process(Packet packet)
Process incoming stanza.
|
addCommandListItemsElements, getCommandListItems, getCommandsManager, getFeatures, getModuleCriteria, getScriptItems, getScriptProcessor, processScriptAdHoc, register, setCommandsManager, setScriptProcessor
fireEvent, getEventBus, getWriter, setEventBus, setWriter, write, write
public void initialize()
Initializable
initialize
in interface Initializable
initialize
in class AdHocCommandModule
public void process(Packet packet) throws ComponentException
Module
process
in interface Module
process
in class AdHocCommandModule
packet
- received stanza
.ComponentException
- if stanza can't be processed correctly. ComponentException is converted to error
stanza and returned to stanza sender.Copyright © 2004–2020 "Tigase, Inc.". All rights reserved.