public class SpringJavaConfigLauncher
extends java.lang.Object
implements org.jacpfx.api.launcher.Launcher<org.springframework.context.annotation.AnnotationConfigApplicationContext>
| Constructor and Description |
|---|
SpringJavaConfigLauncher(java.lang.Class<?>... annotatedClasses) |
| Modifier and Type | Method and Description |
|---|---|
<P> P |
getBean(java.lang.Class<P> clazz)
Returns a bean by class name.
|
org.springframework.context.annotation.AnnotationConfigApplicationContext |
getContext()
Returns the DI container context.
|
<P> P |
registerAndGetBean(java.lang.Class<? extends P> type,
java.lang.String id,
org.jacpfx.api.fragment.Scope scope)
Registers a Class in context and returns a managed bean.
|
public SpringJavaConfigLauncher(java.lang.Class<?>... annotatedClasses)
public org.springframework.context.annotation.AnnotationConfigApplicationContext getContext()
org.quickstart.api.launcher.LaunchergetContext in interface org.quickstart.api.launcher.Launcher<org.springframework.context.annotation.AnnotationConfigApplicationContext>public <P> P getBean(java.lang.Class<P> clazz)
org.quickstart.api.launcher.LaunchergetBean in interface org.quickstart.api.launcher.Launcher<org.springframework.context.annotation.AnnotationConfigApplicationContext>public <P> P registerAndGetBean(java.lang.Class<? extends P> 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.annotation.AnnotationConfigApplicationContext>