001package org.kuali.common.util.execute.impl; 002 003import org.kuali.common.util.execute.Executable; 004 005import com.google.common.base.Preconditions; 006 007public final class ExecutableRunner implements Runnable { 008 009 public ExecutableRunner(Executable executable) { 010 Preconditions.checkNotNull(executable, "executable cannot be null"); 011 this.executable = executable; 012 } 013 014 private final Executable executable; 015 016 @Override 017 public void run() { 018 executable.execute(); 019 } 020 021 public Executable getExecutable() { 022 return executable; 023 } 024 025}