1 24 package org.riotfamily.riot.job.context; 25 26 import org.apache.commons.logging.Log; 27 import org.apache.commons.logging.LogFactory; 28 import org.riotfamily.riot.job.JobContext; 29 import org.riotfamily.riot.job.JobInterruptedException; 30 31 public class CommonsLogginJobContext implements JobContext { 32 33 private static final Log log = LogFactory.getLog( 34 CommonsLogginJobContext.class); 35 36 public String getObjectId() { 37 return null; 38 } 39 40 public void logError(String message) { 41 log.error(message); 42 } 43 44 public void logInfo(String message) { 45 log.info(message); 46 } 47 48 public void stepCompleted() throws JobInterruptedException { 49 } 50 51 public void updateStepsTotal(int stepsTotal) { 52 } 53 54 public void updateDescription(String description) { 55 } 56 57 } 58 | Popular Tags |