public class SessionBinderJobListener extends org.quartz.listeners.JobListenerSupport
JobListener implementation which wraps the execution of a Quartz Job in a persistence context, via the persistenceInterceptor.
| Modifiers | Name | Description |
|---|---|---|
static java.lang.String |
NAME |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public java.lang.String |
getName() |
|
public PersistenceContextInterceptor |
getPersistenceInterceptor()It is used by the Spring to inject a persistence interceptor. |
|
public void |
jobToBeExecuted(org.quartz.JobExecutionContext context)Before job executing. |
|
public void |
jobWasExecuted(org.quartz.JobExecutionContext context, org.quartz.JobExecutionException exception)After job executing. |
|
public void |
setPersistenceInterceptor(PersistenceContextInterceptor persistenceInterceptor)It is used by the Spring to inject a persistence interceptor. |
| Methods inherited from class | Name |
|---|---|
class org.quartz.listeners.JobListenerSupport |
org.quartz.listeners.JobListenerSupport#equals(java.lang.Object), org.quartz.listeners.JobListenerSupport#getClass(), org.quartz.listeners.JobListenerSupport#getName(), org.quartz.listeners.JobListenerSupport#hashCode(), org.quartz.listeners.JobListenerSupport#jobExecutionVetoed(org.quartz.JobExecutionContext), org.quartz.listeners.JobListenerSupport#jobToBeExecuted(org.quartz.JobExecutionContext), org.quartz.listeners.JobListenerSupport#jobWasExecuted(org.quartz.JobExecutionContext, org.quartz.JobExecutionException), org.quartz.listeners.JobListenerSupport#notify(), org.quartz.listeners.JobListenerSupport#notifyAll(), org.quartz.listeners.JobListenerSupport#toString(), org.quartz.listeners.JobListenerSupport#wait(), org.quartz.listeners.JobListenerSupport#wait(long), org.quartz.listeners.JobListenerSupport#wait(long, int) |
It is used by the Spring to inject a persistence interceptor.
Before job executing. Init persistence context.
After job executing. Flush and destroy persistence context.
It is used by the Spring to inject a persistence interceptor.
persistenceInterceptor - - Normally applied by bean injection to set the reference to the persistenceInterceptor