public abstract class EzyAbstractContext
extends com.tvd12.ezyfox.entity.EzyEntity
implements com.tvd12.ezyfox.util.EzyInitable, com.tvd12.ezyfox.util.EzyDestroyable
| Modifier and Type | Field and Description |
|---|---|
protected Map<Class,Supplier> |
commandSuppliers |
protected EzyComponent |
component |
protected EzyHandleException |
handleException |
protected org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
EzyAbstractContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCommand(Class commandType,
Supplier commandSupplier) |
protected void |
addCommandSuppliers(Map<Class,Supplier> suppliers) |
protected Map<Class,Supplier> |
defaultCommandSuppliers() |
void |
destroy() |
void |
handleEvent(com.tvd12.ezyfox.constant.EzyConstant eventType,
EzyEvent event) |
void |
handleException(Thread thread,
Throwable throwable) |
void |
init() |
protected void |
init0() |
protected void |
postDestroy() |
protected void |
preDestroy() |
containsKey, getProperties, getProperty, getProperty, removeProperty, setProperties, setPropertyprotected EzyComponent component
protected EzyHandleException handleException
protected final org.slf4j.Logger logger
public final void init()
init in interface com.tvd12.ezyfox.util.EzyInitableprotected void init0()
public void handleEvent(com.tvd12.ezyfox.constant.EzyConstant eventType,
EzyEvent event)
public void destroy()
destroy in interface com.tvd12.ezyfox.util.EzyDestroyableprotected void preDestroy()
protected void postDestroy()
Copyright © 2021 Young Monkeys. All rights reserved.