@Service public class ScheduledSyncInClusterService extends Object implements org.springframework.context.ApplicationContextAware
@ScheduledSyncInCluster
annotierten Methoden identifiziert und
die Ausführung der Jobs initialisiert.Constructor and Description |
---|
ScheduledSyncInClusterService() |
Modifier and Type | Method and Description |
---|---|
void |
setApplicationContext(org.springframework.context.ApplicationContext ctx)
Nachdem der ApplikationContext aufgebaut ist, werden alle Componenten im ApplicationContext
nach Methode gescant, die mit
@ScheduledSyncInCluster annotiert sind. |
@Autowired JobDao jobDao
public void setApplicationContext(org.springframework.context.ApplicationContext ctx) throws org.springframework.beans.BeansException
@ScheduledSyncInCluster
annotiert sind. Die Methoden
werden als Job initialisiert, die im Cluster synchronisiert ausgeführt werden.setApplicationContext
in interface org.springframework.context.ApplicationContextAware
ctx
- ApplicationContextorg.springframework.beans.BeansException
Copyright © 2019. All rights reserved.