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(RegistryObject registryObject)
Creates
RegistryBean instance from the given RegistryObject based on configuration. |
RegistryObject |
createRegistryObject(T registryBean)
Creates
RegistryObject instance from the given RegistryBean based on configuration. |
RegistryObject createRegistryObject(T registryBean) throws JAXRException, MappingException
RegistryObject
instance from the given RegistryBean
based on configuration.registryBean
- The RegistryBean
objectRegistryObject
.JAXRException
- If a JAXR error occurs while creating the registry objectMappingException
- If an error occurs while mapping the bean object to JAXRT createRegistryBean(RegistryObject registryObject) throws JAXRException, MappingException
RegistryBean
instance from the given RegistryObject
based on configuration.registryObject
- The JAXR RegistryObject
RegistryBean
object.JAXRException
- If a JAXR error occurs while accessing registryObjectMappingException
- If an error occurs while mapping the JAXR object to a bean object