com.devbury.desktoplib.systemtray.SplashDelay.java Source code

Java tutorial

Introduction

Here is the source code for com.devbury.desktoplib.systemtray.SplashDelay.java

Source

/*
 * Copyright (c) 2009-2013 devBury LLC
 *
 *   This file is part of mkRemote.
 *
 *   mkRemote is free software: you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License Version 3
 *   as published by the Free Software Foundation.
 *
 *   mkRemote is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with mkRemote.  If not, see <http://www.gnu.org/licenses/gpl.txt/>.
 */

package com.devbury.desktoplib.systemtray;

import org.springframework.beans.factory.InitializingBean;

public class SplashDelay implements InitializingBean {
    private int delay = 3;

    public void afterPropertiesSet() throws Exception {
        Thread.sleep(delay * 1000);
    }

    public int getDelay() {
        return delay;
    }

    public void setDelay(int delay) {
        this.delay = delay;
    }
}