java.lang.Object | |
↳ | org.springframework.orm.hibernate3.TypeDefinitionBean |
Bean that encapsulates a Hibernate type definition.
Typically defined as inner bean within a LocalSessionFactoryBean definition, as list element for the "typeDefinitions" bean property. For example:
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"> ... <property name="typeDefinitions"> <list> <bean class="org.springframework.orm.hibernate3.TypeDefinitionBean"> <property name="typeName" value="myType"/> <property name="typeClass" value="mypackage.MyTypeClass"/> </bean> </list> </property> ... </bean>Alternatively, specify a bean id (or name) attribute for the inner bean, instead of the "typeName" property.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Invoked by a BeanFactory after it has set all bean properties supplied
(and satisfied BeanFactoryAware and ApplicationContextAware).
| |||||||||||
Return the default parameters for the type.
| |||||||||||
Return the type implementation class.
| |||||||||||
Return the name of the type.
| |||||||||||
If no explicit type name has been specified, the bean name of
the TypeDefinitionBean will be used.
| |||||||||||
Specify default parameters for the type.
| |||||||||||
Set the type implementation class.
| |||||||||||
Set the name of the type.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.beans.factory.BeanNameAware
| |||||||||||
From interface
org.springframework.beans.factory.InitializingBean
|
Invoked by a BeanFactory after it has set all bean properties supplied (and satisfied BeanFactoryAware and ApplicationContextAware).
This method allows the bean instance to perform initialization only possible when all bean properties have been set and to throw an exception in the event of misconfiguration.
If no explicit type name has been specified, the bean name of the TypeDefinitionBean will be used.
name | the name of the bean in the factory. Note that this name is the actual bean name used in the factory, which may differ from the originally specified name: in particular for inner bean names, the actual bean name might have been made unique through appending "#..." suffixes. Use the BeanFactoryUtils#originalBeanName(String) method to extract the original bean name (without suffix), if desired. |
---|
Specify default parameters for the type. This only applies to parameterized types.
Set the type implementation class.
Set the name of the type.