Package com.vaadin.tests.util

Source Code of com.vaadin.tests.util.AlwaysLockedVaadinSession

package com.vaadin.tests.util;

import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;

import com.vaadin.server.VaadinService;
import com.vaadin.server.VaadinSession;

public class AlwaysLockedVaadinSession extends VaadinSession {

    private ReentrantLock lock;

    public AlwaysLockedVaadinSession(VaadinService service) {
        super(service);
        lock = new ReentrantLock();
        lock.lock();
    }

    @Override
    public Lock getLockInstance() {
        return lock;
    }
}
TOP

Related Classes of com.vaadin.tests.util.AlwaysLockedVaadinSession

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.