/** * Convenience method to wrap any object and expose the appropriate * {@link JobExecutionListener} interfaces. * * @param delegate a delegate object * @return a JobListener instance constructed from the delegate */ public static JobExecutionListener getListener(Object delegate) { JobListenerFactoryBean factory = new JobListenerFactoryBean(); factory.setDelegate(delegate); return (JobExecutionListener) factory.getObject(); }
@Before public void setUp() { factoryBean = new JobListenerFactoryBean(); }
/** * Convenience method to wrap any object and expose the appropriate * {@link JobExecutionListener} interfaces. * * @param delegate a delegate object * @return a JobListener instance constructed from the delegate */ public static JobExecutionListener getListener(Object delegate) { JobListenerFactoryBean factory = new JobListenerFactoryBean(); factory.setDelegate(delegate); return (JobExecutionListener) factory.getObject(); }
/** * Convenience method to wrap any object and expose the appropriate * {@link JobExecutionListener} interfaces. * * @param delegate a delegate object * @return a JobListener instance constructed from the delegate */ public static JobExecutionListener getListener(Object delegate) { JobListenerFactoryBean factory = new JobListenerFactoryBean(); factory.setDelegate(delegate); return (JobExecutionListener) factory.getObject(); }
/** * Convenience method to wrap any object and expose the appropriate * {@link JobExecutionListener} interfaces. * * @param delegate a delegate object * @return a JobListener instance constructed from the delegate */ public static JobExecutionListener getListener(Object delegate) { JobListenerFactoryBean factory = new JobListenerFactoryBean(); factory.setDelegate(delegate); return (JobExecutionListener) factory.getObject(); }
/** * Convenience method to wrap any object and expose the appropriate * {@link JobExecutionListener} interfaces. * * @param delegate a delegate object * @return a JobListener instance constructed from the delegate */ public static JobExecutionListener getListener(Object delegate) { JobListenerFactoryBean factory = new JobListenerFactoryBean(); factory.setDelegate(delegate); return (JobExecutionListener) factory.getObject(); }