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) |
<T> T |
cmd(Class<T> clazz) |
protected Map<Class,Supplier> |
defaultCommandSuppliers() |
void |
destroy() |
protected void |
doInit() |
<T> T |
get(Class<T> clazz) |
void |
handleEvent(com.tvd12.ezyfox.constant.EzyConstant eventType,
EzyEvent event) |
void |
handleException(Thread thread,
Throwable throwable) |
void |
init() |
protected abstract <T> T |
parentCmd(Class<T> clazz) |
protected abstract <T> T |
parentGet(Class<T> clazz) |
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 doInit()
public <T> T get(Class<T> clazz)
protected abstract <T> T parentGet(Class<T> clazz)
public <T> T cmd(Class<T> clazz)
protected abstract <T> T parentCmd(Class<T> clazz)
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 © 2024 Young Monkeys. All rights reserved.