@MessageEndpoint public class JobConfigurationResourceLoader extends Object implements ApplicationContextAware
Resource
and create an
ApplicationContext
, registering any Job
instances defined in
a JobRegistry
. If this component is itself configured with Spring,
then its own ApplicationContext will be the parent for the new one, and the
child will inherit AOP configuration, as well as property placeholder and
custom editor configuration from the parent.Constructor and Description |
---|
JobConfigurationResourceLoader() |
Modifier and Type | Method and Description |
---|---|
protected ApplicationContextFactory |
createApplicationContextFactory(ApplicationContext parent,
Resource resource)
Create an application context from the resource provided.
|
Collection<JobInfo> |
loadJobs(Resource resource) |
void |
setApplicationContext(ApplicationContext applicationContext) |
void |
setJobLoader(JobLoader jobLoader) |
void |
setJobService(JobService jobService) |
public void setJobLoader(JobLoader jobLoader)
public void setJobService(JobService jobService)
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
setApplicationContext
in interface ApplicationContextAware
BeansException
@ServiceActivator public Collection<JobInfo> loadJobs(Resource resource) throws DuplicateJobException
DuplicateJobException
protected ApplicationContextFactory createApplicationContextFactory(ApplicationContext parent, Resource resource)
GenericApplicationContextFactory
.parent
- the parent application context (or null if there is none)resource
- the location of the XML configurationCopyright © 2015. All rights reserved.