public class G9Spring extends Object
Bean definitions are read from three types of xml-files.
G9Service.xml
| Modifier and Type | Class and Description |
|---|---|
static class |
G9Spring.ApplicationContextReference
Reference class used to allow for changing the ApplicationContext by installing a reimplementation of this class.
|
| Modifier | Constructor and Description |
|---|---|
protected |
G9Spring()
Prohibit instantiation
|
| Modifier and Type | Method and Description |
|---|---|
static void |
addAdditionalBeanDefinition(String fileName)
Deprecated.
include additional xml files in the G9Service.xml file
|
static org.springframework.context.ApplicationContext |
getApplicationContext()
Get the spring application context.
|
static <T> T |
getBean(Class<T> serviceInterface,
String beanID)
Gets the specified spring bean.
|
static <T> T |
getBean(String beanID)
Gets the specified spring bean.
|
static String[] |
getBeanDefinitions() |
static String[] |
getDefaultBeanDefinitions() |
static String[] |
getOptionalBeanDefinitions() |
static void |
loadApplicationContext()
Load the spring application context if needed.
|
public static String[] getDefaultBeanDefinitions()
public static String[] getOptionalBeanDefinitions()
@Deprecated public static void addAdditionalBeanDefinition(String fileName)
fileName - the name of the xml file.public static <T> T getBean(Class<T> serviceInterface, String beanID)
T - the interface type of the beanserviceInterface - the interface class that the bean implementsbeanID - the bean id used by Spring to identify the beanpublic static <T> T getBean(String beanID)
T - the type of the bean.beanID - the bean id used by Spring to identify the bean.public static org.springframework.context.ApplicationContext getApplicationContext()
public static void loadApplicationContext()
public static String[] getBeanDefinitions()
Copyright © 2006–2020 Esito AS. All rights reserved.