001 package com.croftsoft.core.lang.lifecycle; 002 003 import com.croftsoft.core.lang.NullArgumentException; 004 005 /********************************************************************* 006 * A Runnable that updates Updatables. 007 * 008 * @version 009 * $Id: UpdateRunner.java,v 1.1 2006/01/03 19:05:21 croft Exp $ 010 * @since 011 * 2006-01-03 012 * @author 013 * <a href="https://www.croftsoft.com/">David Wallace Croft</a> 014 *********************************************************************/ 015 016 public final class UpdateRunner 017 implements Runnable 018 ////////////////////////////////////////////////////////////////////// 019 ////////////////////////////////////////////////////////////////////// 020 { 021 022 private final Updatable [ ] updatables; 023 024 ////////////////////////////////////////////////////////////////////// 025 ////////////////////////////////////////////////////////////////////// 026 027 public UpdateRunner ( Updatable [ ] updatables ) 028 ////////////////////////////////////////////////////////////////////// 029 { 030 NullArgumentException.check ( this.updatables = updatables ); 031 } 032 033 ////////////////////////////////////////////////////////////////////// 034 ////////////////////////////////////////////////////////////////////// 035 036 public void run ( ) 037 ////////////////////////////////////////////////////////////////////// 038 { 039 LifecycleLib.update ( updatables ); 040 } 041 042 ////////////////////////////////////////////////////////////////////// 043 ////////////////////////////////////////////////////////////////////// 044 }