public abstract class AbstractSpringAutowiringInterceptor extends Object
org.springframework.ejb.interceptor.SpringBeanAutowiringInterceptor, which
has been removed in Spring 5.x.| Constructor and Description |
|---|
AbstractSpringAutowiringInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
autowireBean(javax.interceptor.InvocationContext invocationContext)
Autowire the target bean after construction as well as after passivation.
|
protected void |
configureBeanPostProcessor(org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor processor,
Object target)
Template method for configuring the
AutowiredAnnotationBeanPostProcessor used for
autowiring the target bean. |
protected void |
doAutowireBean(Object target)
Actually autowire the target bean after construction/passivation.
|
protected abstract Class<?>[] |
getAnnotatedClasses()
Template method to provide the Spring configuration classes used to build the
ApplicationContext.
|
protected org.springframework.context.ApplicationContext |
getApplicationContext(String key)
Retreives the ApplicationContext to use for autowiring.
|
protected org.springframework.beans.factory.BeanFactory |
getBeanFactory()
Determine the BeanFactory for autowiring the given target bean.
|
protected String |
getKey()
Provides the key for accessing the Spring context.
|
protected abstract AbstractSpringSingletonBean |
getSpringSingletonBean()
Template method to provide a reference to the singleton Bean holding the Spring
ApplicationContexts.
|
@PostConstruct public void autowireBean(javax.interceptor.InvocationContext invocationContext)
invocationContext - the EJB invocation contextprotected void doAutowireBean(Object target)
target - the target bean to autowireprotected void configureBeanPostProcessor(org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor processor,
Object target)
AutowiredAnnotationBeanPostProcessor used for
autowiring the target bean.processor - the AutowiredAnnotationBeanPostProcessor to configuretarget - the target bean to autowire with this processorprotected String getKey()
protected org.springframework.beans.factory.BeanFactory getBeanFactory()
protected org.springframework.context.ApplicationContext getApplicationContext(String key)
key - the key identifying the ApplicationContextprotected abstract AbstractSpringSingletonBean getSpringSingletonBean()
protected abstract Class<?>[] getAnnotatedClasses()
Copyright © 2019 Thomas Naskali. All rights reserved.