Search in sources :

Example 1 with RequestDataKeeper

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;
}
Also used : RequestDataKeeper(io.lumeer.core.auth.RequestDataKeeper)

Aggregations

RequestDataKeeper (io.lumeer.core.auth.RequestDataKeeper)1