@Deprecated public class TypeDefinitionBean extends Object implements BeanNameAware, InitializingBean
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.
LocalSessionFactoryBean.setTypeDefinitions(TypeDefinitionBean[])
Constructor and Description |
---|
TypeDefinitionBean()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet()
Deprecated.
Invoked by the containing
BeanFactory after it has set all bean properties
and satisfied BeanFactoryAware , ApplicationContextAware etc. |
Properties |
getParameters()
Deprecated.
Return the default parameters for the type.
|
String |
getTypeClass()
Deprecated.
Return the type implementation class.
|
String |
getTypeName()
Deprecated.
Return the name of the type.
|
void |
setBeanName(String name)
Deprecated.
If no explicit type name has been specified, the bean name of
the TypeDefinitionBean will be used.
|
void |
setParameters(Properties parameters)
Deprecated.
Specify default parameters for the type.
|
void |
setTypeClass(String typeClass)
Deprecated.
Set the type implementation class.
|
void |
setTypeName(String typeName)
Deprecated.
Set the name of the type.
|
public void setTypeName(String typeName)
public String getTypeName()
public void setTypeClass(String typeClass)
public String getTypeClass()
public void setParameters(Properties parameters)
public Properties getParameters()
public void setBeanName(String name)
setBeanName
in interface BeanNameAware
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.setTypeName(java.lang.String)
public void afterPropertiesSet()
InitializingBean
BeanFactory
after it has set all bean properties
and satisfied BeanFactoryAware
, ApplicationContextAware
etc.
This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set.
afterPropertiesSet
in interface InitializingBean