T
- Type class extending RegistryBean
public class DefaultBackedBeanMapper<T extends RegistryBean> extends AnnotationBeanMapper<T> implements BackedBeanMapper<T>
BackedBeanMapper
interface.Constructor and Description |
---|
DefaultBackedBeanMapper() |
Modifier and Type | Method and Description |
---|---|
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 the
PropertyMapper instances for the required properties. |
javax.xml.registry.infomodel.RegistryObject |
getRegistryObject(T bean,
PersistenceContext context)
Obtains the
RegistryObject for the given bean. |
getPropertyMapperFactory, setPropertyMapperFactory
getBeanClass, toBean, toJaxr
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBeanClass, toBean, toJaxr
public javax.xml.registry.infomodel.RegistryObject getRegistryObject(T bean, PersistenceContext context)
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)
.getRegistryObject
in interface BackedBeanMapper<T extends RegistryBean>
bean
- The bean objectcontext
- The PersistenceContext
instanceRegistryObject
corresponding the given bean object or null
if not foundpublic java.util.Map<java.lang.String,PropertyMapper> getPropertyMappers(T bean, PersistenceContext context) throws MappingException
PropertyMapper
instances for the required properties.getPropertyMappers
in interface BackedBeanMapper<T extends RegistryBean>
bean
- The bean objectcontext
- The PersistenceContext
instanceMap
containing initialized PropertyMapper
instancesMappingException
- If am error occurs while trying to initialize the property mapperspublic javax.xml.registry.infomodel.RegistryObject createRegistryObject(T bean, PersistenceContext context)
RegistryObject
for the given bean is created and the bean key is updated.createRegistryObject
in interface BackedBeanMapper<T extends RegistryBean>
bean
- The bean objectcontext
- The PersistenceContext
instanceRegistryObject
created for the given bean object