com.virjar.sekiro.api.databind.EmptyARCreateHelper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sekiro-api Show documentation
Show all versions of sekiro-api Show documentation
ratel api,used for developer on ratel system,an extension for xposed framewrok,ratel api compatable with original xposed framework
package com.virjar.sekiro.api.databind;
import com.virjar.sekiro.api.SekiroRequest;
import com.virjar.sekiro.api.SekiroRequestHandler;
/**
* Created by virjar on 2019/1/25.
* emptyActionRequestHandlerCreateHelper
*/
public class EmptyARCreateHelper implements ActionRequestHandlerGenerator {
private Class extends SekiroRequestHandler> actionRequestHandlerClass;
public EmptyARCreateHelper(Class extends SekiroRequestHandler> actionRequestHandlerClass) {
this.actionRequestHandlerClass = actionRequestHandlerClass;
}
@Override
public SekiroRequestHandler gen(SekiroRequest invokeRequest) {
try {
return actionRequestHandlerClass.newInstance();
} catch (Exception e) {
// not happen
throw new IllegalStateException(e);
}
}
}