@Component public final class SpringBeanInjector extends Object
Autowired,
Value and Inject annotations.
<context:annotation-config /> <bean class="net.sf.jstuff.integration.spring.SpringBeanInjector" />or
<context:annotation-config /> <context:component-scan base-package="net.sf.jstuff.integration.spring" />
| Modifier and Type | Method and Description |
|---|---|
static SpringBeanInjector |
get() |
void |
inject(Object unmanagedBean)
Injects declared dependencies but does not execute any life-cycle methods.
|
void |
registerSingleton(String beanName,
Object uninitializedBean)
Fully initializes the unmanaged bean, registers it with the spring context and enables
life-cycle callback methods.
|
public static SpringBeanInjector get()
public void inject(Object unmanagedBean)
Copyright © 2010–2021 Vegard IT GmbH, Germany. All rights reserved.