T
- The type class extending RegistryBean
public interface ObjectFactory<T extends RegistryBean>
RegistryObject
from RegistryBean
and
vice versa.Modifier and Type | Method and Description |
---|---|
T |
createRegistryBean(javax.xml.registry.infomodel.RegistryObject registryObject)
Creates
RegistryBean instance from the given RegistryObject based on configuration. |
javax.xml.registry.infomodel.RegistryObject |
createRegistryObject(T registryBean)
Creates
RegistryObject instance from the given RegistryBean based on configuration. |
javax.xml.registry.infomodel.RegistryObject createRegistryObject(T registryBean) throws javax.xml.registry.JAXRException, MappingException
RegistryObject
instance from the given RegistryBean
based on configuration.registryBean
- The RegistryBean
objectRegistryObject
.javax.xml.registry.JAXRException
- If a JAXR error occurs while creating the registry objectMappingException
- If an error occurs while mapping the bean object to JAXRT createRegistryBean(javax.xml.registry.infomodel.RegistryObject registryObject) throws javax.xml.registry.JAXRException, MappingException
RegistryBean
instance from the given RegistryObject
based on configuration.registryObject
- The JAXR RegistryObject
RegistryBean
object.javax.xml.registry.JAXRException
- If a JAXR error occurs while accessing registryObjectMappingException
- If an error occurs while mapping the JAXR object to a bean object