CTX
- context of component.public abstract class AbstractModule<CTX extends Context> extends Object implements Module, ContextAware, InitializingModule
Module
, ContextAware
and
InitializingModule
.Modifier and Type | Field and Description |
---|---|
protected CTX |
context |
protected Logger |
log |
Constructor and Description |
---|
AbstractModule() |
Modifier and Type | Method and Description |
---|---|
void |
afterRegistration()
Called after registration.
|
void |
beforeRegister()
Called before registering.
|
protected void |
fireEvent(Element event)
Fires event.
|
void |
setContext(Context context) |
void |
unregisterModule()
Called before module is unregistered.
|
protected void |
write(Packet packet)
Writes single Packet.
|
protected void |
write(Packet packet,
AsyncCallback asyncCallback) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFeatures, getModuleCriteria, process
public void afterRegistration()
InitializingModule
afterRegistration
in interface InitializingModule
public void beforeRegister()
InitializingModule
beforeRegister
in interface InitializingModule
protected void fireEvent(Element event)
event
- event to fire.public void setContext(Context context)
setContext
in interface ContextAware
public void unregisterModule()
InitializingModule
unregisterModule
in interface InitializingModule
protected void write(Packet packet)
packet
- Packet
to be written.protected void write(Packet packet, AsyncCallback asyncCallback)
Copyright © 2018 "Tigase, Inc.". All rights reserved.