Package com.onenetwork.platform.env.bean
Interface BeanService
- All Superinterfaces:
Service
public interface BeanService extends Service
Bean factory which leverages Spring bean definitions.
Each module may optionally have a Spring "beans" file located at:
com/mybooks/zbks-app-context.xml
... where "com/mybooks" should be replaced with your module's base package, and "zbks" should be replaced with your module prefix. When that beans field is present, it will be loaded on server startup. BeanService can then be used to fetch beans by ID, in addition to using other standard dependency injection methods to get resources
com/mybooks/zbks-app-context.xml
... where "com/mybooks" should be replaced with your module's base package, and "zbks" should be replaced with your module prefix. When that beans field is present, it will be loaded on server startup. BeanService can then be used to fetch beans by ID, in addition to using other standard dependency injection methods to get resources
-
Method Summary
Modifier and Type Method Description java.lang.Object
getBean(java.lang.String beanId)
Returns the bean registered with the given ID from the Spring application context.
-
Method Details
-
getBean
java.lang.Object getBean(java.lang.String beanId)Returns the bean registered with the given ID from the Spring application context.- Parameters:
beanId
- bean id- Returns:
- matching bean
- Throws:
propagates
- Spring runtime exception if bean not found or not instantiable
-