Package org.jasen.update

Examples of org.jasen.update.JasenAutoUpdateConfiguration


            if(config.getAutoUpdateEnabled() != null && config.getAutoUpdateEnabled().trim().equalsIgnoreCase("true")) {

                logger.debug("Initialising auto update engine");

                // create the configuration
                JasenAutoUpdateConfiguration jc = new JasenAutoUpdateConfiguration();
                jc.setCheckOnStartup(new Boolean(config.getAutoUpdateCheckOnStartup()).booleanValue());
                jc.setErrorHandler((JasenErrorHandler)Class.forName(config.getAutoUpdateErrorHandler(), true, loader).newInstance());
                jc.setFrequency(Long.parseLong(config.getAutoUpdateFrequency()));
                jc.setParcel(config.getAutoUpdateParcel());
                jc.setReadBuffer(Integer.parseInt(config.getAutoUpdateReadBuffer()));
                jc.setReadTimeout(Long.parseLong(config.getAutoUpdateReadTimout()));
                jc.setUpdateURL(new URL(config.getAutoUpdateUrl()));

                // initialise and start the update manager
                JasenAutoUpdateManager.getInstance().init(jc);
            }
        }
View Full Code Here

TOP

Related Classes of org.jasen.update.JasenAutoUpdateConfiguration

Copyright © 2018 www.massapicom. 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.