
artoria.action.handler.AbstractAutoOperateActionHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of artoria-extend Show documentation
Show all versions of artoria-extend Show documentation
Artoria is a java technology framework based on the facade pattern.
The newest version!
package artoria.action.handler;
import artoria.util.Assert;
/**
* The abstract automated operate action handler.
* @author Kahle
*/
public abstract class AbstractAutoOperateActionHandler
extends AbstractOperateActionHandler implements AutoActionHandler {
private final HandlerConfigImpl handlerConfig;
private final String actionName;
@Deprecated
public AbstractAutoOperateActionHandler(String actionName, Class> registeredClass) {
this(actionName);
Assert.notNull(registeredClass, "Parameter \"registeredClass\" must not null. ");
getConfig().put("registeredClass", registeredClass.getName());
}
public AbstractAutoOperateActionHandler(String actionName) {
this(actionName, new HandlerConfigImpl());
}
public AbstractAutoOperateActionHandler(String actionName, HandlerConfigImpl handlerConfig) {
Assert.notNull(handlerConfig, "Parameter \"handlerConfig\" must not null. ");
Assert.notBlank(actionName, "Parameter \"actionName\" must not blank. ");
this.handlerConfig = handlerConfig;
this.actionName = actionName;
}
@Override
public String getName() {
return actionName;
}
@Override
public HandlerConfigImpl getConfig() {
return handlerConfig;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy