Package tigase.component.modules
Class AbstractModule
java.lang.Object
tigase.component.modules.AbstractModule
- All Implemented Interfaces:
Module
- Direct Known Subclasses:
AbstractEventBusModule
,AdHocCommandModule
,DiscoveryModule
,JabberVersionModule
,TestGeneratorModule
,TestSpamModule
,XmppPingModule
Abstract class for help building a module. It has implemented few default methods from
Module
,
ContextAware
and InitializingModule
.- Author:
- bmalkow
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected EventBus
protected final Logger
protected PacketWriter
Fields inherited from interface tigase.component.modules.Module
EMPTY_FEATURES
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Fires event.void
setEventBus
(EventBus eventBus) void
setWriter
(PacketWriter writer) protected void
protected void
write
(Packet packet, AsyncCallback asyncCallback) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface tigase.component.modules.Module
canHandle, getFeatures, getModuleCriteria, process
-
Field Details
-
log
-
eventBus
-
writer
-
-
Constructor Details
-
AbstractModule
public AbstractModule()
-
-
Method Details
-
getEventBus
-
setEventBus
-
getWriter
-
setWriter
-
fireEvent
Fires event.- Parameters:
event
- event to fire.
-
write
-
write
-