public class OCBaseConfig
extends java.lang.Object
Constructor and Description |
---|
OCBaseConfig() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getBean(java.lang.String beanId)
This method returns a configured bean of the specified type.
|
java.lang.String[] |
getBeanDefinitionNames() |
public java.lang.Object getBean(java.lang.String beanId)
<bean id="myMapBean" class="java.util.HashMap" >
<constructor-arg index="0">
<map>
<entry key="keyOne" value="valueOne" />
<entry key="keyTwo" value="valueTwo" />
</map>
</constructor-arg>
</bean>
you can retrieve this bean by calling:
HashMapbeanId
- classType
- org.springframework.beans.BeansException
- if the bean is incorrectly configured or there is a type problempublic java.lang.String[] getBeanDefinitionNames()