use of com.tvd12.ezyfoxserver.support.controller.EzyCommandsAware in project ezyfox-server by youngmonkeys.
the class EzySimplePluginEntry method setPluginRequestController.
private void setPluginRequestController(EzyPluginContext pluginContext, EzyBeanContext beanContext) {
if (!allowRequest() || getClass().isAnnotationPresent(EzyDisallowRequest.class)) {
return;
}
EzyPluginSetup setup = pluginContext.get(EzyPluginSetup.class);
EzyPluginRequestController controller = newUserRequestController(beanContext);
setup.setRequestController(controller);
Set<String> commands = ((EzyCommandsAware) controller).getCommands();
pluginContext.setProperty(COMMANDS, commands);
}
use of com.tvd12.ezyfoxserver.support.controller.EzyCommandsAware in project ezyfox-server by youngmonkeys.
the class EzySimpleAppEntry method setAppRequestController.
private void setAppRequestController(EzyAppContext appContext, EzyBeanContext beanContext) {
EzyAppSetup setup = appContext.get(EzyAppSetup.class);
EzyAppRequestController controller = newUserRequestController(beanContext);
setup.setRequestController(controller);
Set<String> commands = ((EzyCommandsAware) controller).getCommands();
appContext.setProperty(COMMANDS, commands);
}
Aggregations