T
- Type that extends the RegistryBean
classpublic interface BackedBeanMapper<T extends RegistryBean> extends BeanMapper<T>
BeanMapper
interface providing access to
PropertyMapper
for given property of a bean.BeanMapper
,
PropertyMapper
Modifier and Type | Method and Description |
---|---|
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)
Obtains all
PropertyMapper -s for a given bean. |
RegistryObject |
getRegistryObject(T bean,
PersistenceContext context)
Obtains the
RegistryObject for the given bean. |
getBeanClass, toBean, toJaxr
java.util.Map<java.lang.String,PropertyMapper> getPropertyMappers(T bean, PersistenceContext context) throws MappingException
PropertyMapper
-s for a given bean.bean
- The bean objectcontext
- The PersistenceContext
instanceMap
containing all the PropertyMapper
s for the given bean objectMappingException
- If an error occurs while obtaining the property mappersRegistryObject 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
createRegistryObject(RegistryBean, PersistenceContext)
.bean
- The bean objectcontext
- The PersistenceContext
instanceRegistryObject
corresponding the given bean object or null
if not foundRegistryObject createRegistryObject(T bean, PersistenceContext context)
RegistryObject
for the given bean is created and the bean key is updated.bean
- The bean objectcontext
- The PersistenceContext
instanceRegistryObject
created for the given bean object