use of io.lumeer.core.auth.RequestDataKeeper in project engine by Lumeer.
the class ContextualTaskFactory method getInstance.
public <T extends ContextualTask> T getInstance(final Class<T> clazz) {
try {
T t = clazz.getConstructor().newInstance();
t.initialize(authenticatedUser.getCurrentUser(), daoContextSnapshotFactory.getInstance(), pusherHelperFacade.getPusherClient(), lumeerS3ClientHelperFacade.getLumeerS3Client(), new RequestDataKeeper(requestDataKeeper), constraintManager, configurationProducer.getEnvironment(), 0);
return t;
} catch (Exception e) {
log.log(Level.WARNING, "Unable to instantiate a task: ", e);
}
return null;
}
Aggregations