|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.softwareag.centrasite.appl.framework.persistence.mapper.impl.BaseObjectFactory<T>
public class BaseObjectFactory<T extends RegistryBean>
Base implementation of the ObjectFactory
interface. Uses
PersistenceContext
instance to work with the registry. Extending
classes should override the getActualBeanClass(RegistryObject)
method.
Constructor Summary | |
---|---|
BaseObjectFactory()
|
Method Summary | ||
---|---|---|
static
|
createInstance(PersistenceContext context,
java.lang.Class<T> beanClass)
Factory method for creating instances of this abstract class. |
|
T |
createRegistryBean(javax.xml.registry.infomodel.RegistryObject registryObject)
Creates RegistryBean instance from the given
RegistryObject based on configuration. |
|
javax.xml.registry.infomodel.RegistryObject |
createRegistryObject(RegistryBean registryBean)
Creates RegistryObject instance from the given
RegistryBean based on configuration. |
|
java.lang.Class<T> |
getBaseBeanClass()
Returns the Class that this factory works on. |
|
PersistenceContext |
getContext()
Returns the PersistenceContext used by this instance. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BaseObjectFactory()
Method Detail |
---|
public static <T extends RegistryBean> BaseObjectFactory<T> createInstance(PersistenceContext context, java.lang.Class<T> beanClass)
context
- The PersistenceContext
instance to be used by the
object factory.beanClass
- The bean type for which object factory will be created.public T createRegistryBean(javax.xml.registry.infomodel.RegistryObject registryObject) throws javax.xml.registry.JAXRException, MappingException
RegistryBean
instance from the given
RegistryObject
based on configuration.
createRegistryBean
in interface ObjectFactory<T extends RegistryBean>
javax.xml.registry.JAXRException
MappingException
public javax.xml.registry.infomodel.RegistryObject createRegistryObject(RegistryBean registryBean) throws MappingException, javax.xml.registry.JAXRException
RegistryObject
instance from the given
RegistryBean
based on configuration.
createRegistryObject
in interface ObjectFactory<T extends RegistryBean>
MappingException
javax.xml.registry.JAXRException
public PersistenceContext getContext()
PersistenceContext
used by this instance.
public java.lang.Class<T> getBaseBeanClass()
Class
that this factory works on.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |