public class MappingResources extends Object implements org.springframework.beans.factory.InitializingBean
Constructor and Description |
---|
MappingResources() |
Modifier and Type | Method and Description |
---|---|
void |
addMapping(String mapping) |
void |
afterPropertiesSet()
Invoked by a BeanFactory after it has set all bean properties supplied
(and satisfied BeanFactoryAware and ApplicationContextAware).
|
org.springframework.core.io.Resource |
getConfigLocation() |
List |
getMappings() |
String[] |
getMappingsAsArray() |
List |
getTableNames()
Retrieves the table names using a transparent
configuration object built from the hbm.xml mappings.
|
void |
setConfigLocation(org.springframework.core.io.Resource configLocation) |
void |
setMappings(List mappings) |
public void setMappings(List mappings)
public void addMapping(String mapping)
public List getMappings()
public org.springframework.core.io.Resource getConfigLocation()
public void setConfigLocation(org.springframework.core.io.Resource configLocation)
public String[] getMappingsAsArray()
public List getTableNames()
public void afterPropertiesSet() throws Exception
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.
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
- in the event of misconfiguration (such
as failure to set an essential property) or if initialization fails.Copyright © 2013 Atlassian. All Rights Reserved.