}
public void register(Class<? extends ActionExecutor> klass) throws ServiceException {
XLog log = XLog.getLog(getClass());
ActionExecutor executor = (ActionExecutor) ReflectionUtils.newInstance(klass, services.getConf());
log.trace("Registering action type [{0}] class [{1}]", executor.getType(), klass);
if (executors.containsKey(executor.getType())) {
throw new ServiceException(ErrorCode.E0150, executor.getType());
}
ActionExecutor.enableInit();
executor.initActionType();