com.arsdigita.domain
Class ReflectionInstantiator

java.lang.Object
  extended bycom.arsdigita.domain.DomainObjectInstantiator
      extended bycom.arsdigita.domain.ReflectionInstantiator

public class ReflectionInstantiator
extends DomainObjectInstantiator

This instantiator is primarily intended for other instantiators (such as ACSObjectInstantiator) to provide the default behavior of instiating a domain class using reflection.


Field Summary
static String versionId
           
 
Method Summary
protected  DomainObject doNewInstance(DataObject dataObject)
          Construct a DomainObject given a data object.
static ReflectionInstantiator getInstantiator(String domainClassName)
           
 
Methods inherited from class com.arsdigita.domain.DomainObjectInstantiator
resolveInstantiator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Method Detail

getInstantiator

public static ReflectionInstantiator getInstantiator(String domainClassName)

doNewInstance

protected DomainObject doNewInstance(DataObject dataObject)
Construct a DomainObject given a data object. Called from DomainObjectFactory.newInstance() as the last step of instantiation.

Specified by:
doNewInstance in class DomainObjectInstantiator
Parameters:
dataObject - The data object from which to construct a domain object.
Returns:
A domain object for this data object, or null if unable to create.


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC