public class SpringXmlConfigLauncher
extends java.lang.Object
implements org.jacpfx.api.launcher.Launcher<org.springframework.context.support.ClassPathXmlApplicationContext>
| Constructor and Description |
|---|
SpringXmlConfigLauncher(java.lang.String resource) |
| Modifier and Type | Method and Description |
|---|---|
<E> E |
getBean(java.lang.Class<E> clazz)
Returns a bean by class name.
|
org.springframework.context.support.ClassPathXmlApplicationContext |
getContext()
Returns the DI container context.
|
<T> T |
registerAndGetBean(java.lang.Class<? extends T> type,
java.lang.String id,
org.jacpfx.api.fragment.Scope scope)
Registers a Class in context and returns a managed bean.
|
public SpringXmlConfigLauncher(java.lang.String resource)
public org.springframework.context.support.ClassPathXmlApplicationContext getContext()
org.quickstart.api.launcher.LaunchergetContext in interface org.quickstart.api.launcher.Launcher<org.springframework.context.support.ClassPathXmlApplicationContext>public <E> E getBean(java.lang.Class<E> clazz)
org.quickstart.api.launcher.LaunchergetBean in interface org.quickstart.api.launcher.Launcher<org.springframework.context.support.ClassPathXmlApplicationContext>public <T> T registerAndGetBean(java.lang.Class<? extends T> type,
java.lang.String id,
org.quickstart.api.fragment.Scope scope)
org.quickstart.api.launcher.LauncherregisterAndGetBean in interface org.quickstart.api.launcher.Launcher<org.springframework.context.support.ClassPathXmlApplicationContext>