com.softwareag.centrasite.appl.framework.persistence.mapper.impl
Class DefaultBackedBeanMapper<T extends RegistryBean>
java.lang.Object
com.softwareag.centrasite.appl.framework.persistence.mapper.impl.BaseBeanMapper<T>
com.softwareag.centrasite.appl.framework.persistence.mapper.impl.AnnotationBeanMapper<T>
com.softwareag.centrasite.appl.framework.persistence.mapper.impl.DefaultBackedBeanMapper<T>
- All Implemented Interfaces:
- BackedBeanMapper<T>, BeanMapper<T>
public class DefaultBackedBeanMapper<T extends RegistryBean>
- extends AnnotationBeanMapper<T>
- implements BackedBeanMapper<T>
Implementation of the BackedBeanMapper
interface.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultBackedBeanMapper
public DefaultBackedBeanMapper()
getRegistryObject
public javax.xml.registry.infomodel.RegistryObject getRegistryObject(T bean,
PersistenceContext context)
- Obtains the
RegistryObject
for the given bean. Returns
null
if RegistryObject
with given id is not found
in the registry. New registry object can be created using
BackedBeanMapper.createRegistryObject(RegistryBean, PersistenceContext)
.
- Specified by:
getRegistryObject
in interface BackedBeanMapper<T extends RegistryBean>
- Returns:
RegistryObject
getPropertyMappers
public java.util.Map<java.lang.String,PropertyMapper> getPropertyMappers(T bean,
PersistenceContext context)
throws MappingException
- Processes the annotations of the bean and initializes
PropertyMapper
instances for the required properties.
- Specified by:
getPropertyMappers
in interface BackedBeanMapper<T extends RegistryBean>
- Returns:
Map
- Throws:
MappingException
createRegistryObject
public javax.xml.registry.infomodel.RegistryObject createRegistryObject(T bean,
PersistenceContext context)
RegistryObject
for the given bean is created and the bean key is
updated.
- Specified by:
createRegistryObject
in interface BackedBeanMapper<T extends RegistryBean>
- Returns:
RegistryObject