org.nakedobjects.runtime.persistence.objectfactory
Interface ObjectFactory

All Superinterfaces:
Component, SessionScopedComponent
All Known Implementing Classes:
ObjectFactoryAbstract, ObjectFactoryBasic

public interface ObjectFactory
extends SessionScopedComponent


Method Summary
<T> T
instantiate(java.lang.Class<T> cls)
          Should instantiate the object, and in addition initialize the domain object (for example, inject any services and repositories into it).
 
Methods inherited from interface org.nakedobjects.metamodel.commons.component.SessionScopedComponent
close, open
 

Method Detail

instantiate

<T> T instantiate(java.lang.Class<T> cls)
              throws ObjectInstantiationException
Should instantiate the object, and in addition initialize the domain object (for example, inject any services and repositories into it).

Throws:
ObjectInstantiationException


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.