Package com.avoka.fc.core.util
Class CayenneTask
- java.lang.Object
-
- com.avoka.fc.core.util.CayenneTask
-
-
Constructor Summary
Constructors Constructor Description CayenneTask(ServletContext servletContext, boolean clearDaoCaches)
Create a Cayenne runnable task.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ServletContext
getServletContext()
abstract void
performTask()
Execute the task business logic.void
run()
Perform the task.
-
-
-
Constructor Detail
-
CayenneTask
public CayenneTask(ServletContext servletContext, boolean clearDaoCaches)
Create a Cayenne runnable task.- Parameters:
servletContext
- the servlet contextclearDaoCaches
- the clear DAO caches flag
-
-
Method Detail
-
performTask
public abstract void performTask()
Execute the task business logic.
-
run
public void run()
Perform the task.- Specified by:
run
in interfaceRunnable
- See Also:
Runnable.run()
-
getServletContext
public ServletContext getServletContext()
- Returns:
- the servlet context
-
-