Code example for Executor

Methods: execute

0
	private Executor executor;
 
	@Override 
	public void afterPropertiesSet() throws Exception { 
		Assert.notNull(taskScheduler, "taskScheduler required");
		Assert.notNull(executor, "executor required");
		executor.execute(taskScheduler);
	} 
 
	/** 
	 * @return the taskScheduler 
	 */ 
	public TaskScheduler getTaskScheduler() { 
		return taskScheduler;
	} 
 
	/** 
	 * @param taskScheduler 
	 *            the taskScheduler to set 
	 */ 
	public void setTaskScheduler(TaskScheduler taskScheduler) {