public interface BackedBeanInfo extends BeanInfo
BeanInfo
by providing access to the RegistryObject
standing behind the bean.
This interface should be implemented by "backed" registry bean proxies.BeanInfo
Modifier and Type | Method and Description |
---|---|
java.util.Set<RegistryObject> |
getModifiedObjects()
Retrieves all modified
RegistryObject including the primary backed object. |
java.util.Set<PropertyMapper> |
getPropertiesToMap()
Retrieves the
PropertyMapper instances that need to be invoked by
the BeanMapper working on this proxy. |
RegistryObject |
getRegistryObject()
Retrieves the backed
RegistryObject . |
void |
setRegistryObject(RegistryObject ro)
Sets the backed
RegistryObject . |
void |
toBean()
Forces all property values to be loaded from the underlying registry
object.
|
void |
toJaxr()
Forces all property values to be updated into the underlying registry
object.
|
getBean, getKey, getPersistenceContext, isCreated, isDeleted, isModified, setBean, setCreated, setDeleted, setModified
RegistryObject getRegistryObject()
RegistryObject
.RegistryObject
instancevoid setRegistryObject(RegistryObject ro)
RegistryObject
.ro
- The RegistryObject
to setjava.util.Set<RegistryObject> getModifiedObjects()
RegistryObject
including the primary backed object.Set
of modified RegistryObject
sjava.util.Set<PropertyMapper> getPropertiesToMap()
PropertyMapper
instances that need to be invoked by
the BeanMapper
working on this proxy. This is a workaround for
handing modifications on collection properties. It is expected that the
implementation for this method will return the property mappers for all
collection properties that have been retrieved and possibly modified.Set
of PropertyMapper
s to mapvoid toBean() throws MappingException, JAXRException
MappingException
- If an error occurs while enforcing the conditionJAXRException
- If a JAXR error occurs while trying to load from the registry objectsvoid toJaxr() throws MappingException, JAXRException
MappingException
- If an error occurs while enforcing the conditionJAXRException
- If a JAXR error occurs while trying to update to the registry objects