Skip to content
This repository has been archived by the owner on May 28, 2022. It is now read-only.

Commit

Permalink
Issue 55: Clean up object structures around task scheduler adapter
Browse files Browse the repository at this point in the history
git-svn-id: http://ehcache-spring-annotations.googlecode.com/svn/trunk@660 e9fffd1a-4083-750a-f54f-a748c1f33b81
  • Loading branch information
eric.dalquist@gmail.com committed Apr 25, 2011
1 parent 138765e commit 47afdd9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@
/**
* Simply wraps a Spring 3 {@link TaskScheduler}
*
* Package private to prevent other classes from using this class accidentally
*
* @author Eric Dalquist
* @version $Revision$
*/
public class Spring3TaskSchedulerAdapter implements TaskSchedulerAdapter {
class Spring3TaskSchedulerAdapter implements TaskSchedulerAdapter {
private final TaskScheduler taskScheduler;

public Spring3TaskSchedulerAdapter(TaskScheduler taskScheduler) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
* @author Eric Dalquist
* @version $Revision$
*/
public class TaskSchedulerAdapterFactory {
public final class TaskSchedulerAdapterFactory {
private static final Logger LOGGER = LoggerFactory.getLogger(TaskSchedulerAdapterFactory.class);

private static Class<?> TASK_SCHEDULER_CLASS = null;
Expand Down Expand Up @@ -93,4 +93,6 @@ public static TaskSchedulerAdapter createTaskSchedulerAdapter(Object scheduler)

throw new IllegalArgumentException("Provided scheduler object of type " + scheduler.getClass() + " is not supported. Please provide a TaskScheduler, Timer or TaskSchedulerAdapter");
}

private TaskSchedulerAdapterFactory() {}
}

0 comments on commit 47afdd9

Please sign in to comment.