public class SpringResourceInjector extends Object implements ResourceInjector, org.springframework.context.ApplicationContextAware
@Autowired
or JSR-250's
Resource
.
Note: make sure that the Spring context also declares <context:annotation-config />
or an
AutowiredAnnotationBeanPostProcessor
. See the Spring documentation for more information.Constructor and Description |
---|
SpringResourceInjector() |
Modifier and Type | Method and Description |
---|---|
void |
injectResources(Object saga)
Inject required resources into the given
saga . |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
public void injectResources(Object saga)
ResourceInjector
saga
.injectResources
in interface ResourceInjector
saga
- The saga to inject resources intopublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
Copyright © 2010–2024. All rights reserved.