com.softwareag.centrasite.appl.framework.persistence.mapper.impl
Class DefaultBackedBeanMapper<T extends RegistryBean>

java.lang.Object
  extended by com.softwareag.centrasite.appl.framework.persistence.mapper.impl.BaseBeanMapper<T>
      extended by com.softwareag.centrasite.appl.framework.persistence.mapper.impl.AnnotationBeanMapper<T>
          extended by 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.


Constructor Summary
DefaultBackedBeanMapper()
           
 
Method Summary
 javax.xml.registry.infomodel.RegistryObject createRegistryObject(T bean, PersistenceContext context)
          RegistryObject for the given bean is created and the bean key is updated.
 java.util.Map<java.lang.String,PropertyMapper> getPropertyMappers(T bean, PersistenceContext context)
          Processes the annotations of the bean and initializes PropertyMapper instances for the required properties.
 javax.xml.registry.infomodel.RegistryObject getRegistryObject(T bean, PersistenceContext context)
          Obtains the RegistryObject for the given bean.
 
Methods inherited from class com.softwareag.centrasite.appl.framework.persistence.mapper.impl.AnnotationBeanMapper
getPropertyMapperFactory, setPropertyMapperFactory
 
Methods inherited from class com.softwareag.centrasite.appl.framework.persistence.mapper.impl.BaseBeanMapper
getBeanClass, toBean, toJaxr
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.softwareag.centrasite.appl.framework.persistence.mapper.BeanMapper
getBeanClass, toBean, toJaxr
 

Constructor Detail

DefaultBackedBeanMapper

public DefaultBackedBeanMapper()
Method Detail

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