org.nakedobjects.applib
Class AbstractFactoryAndRepository

java.lang.Object
  extended by org.nakedobjects.applib.AbstractContainedObject
      extended by org.nakedobjects.applib.AbstractService
          extended by org.nakedobjects.applib.AbstractFactoryAndRepository

public abstract class AbstractFactoryAndRepository
extends AbstractService


Constructor Summary
AbstractFactoryAndRepository()
           
 
Method Summary
protected
<T> T
newInstance(java.lang.Class<T> ofClass, java.lang.Object object)
          Returns a new instance of the specified class that has the sane persisted state as the specified object.
protected
<T> T
newPersistentInstance(java.lang.Class<T> ofClass)
          Returns a new instance of the specified class that will have been persisted.
 
Methods inherited from class org.nakedobjects.applib.AbstractService
getClassName, getId
 
Methods inherited from class org.nakedobjects.applib.AbstractContainedObject
allInstances, allMatches, allMatches, allMatches, allMatches, firstMatch, firstMatch, firstMatch, firstMatch, getContainer, getUser, informUser, isPersistent, isValid, newTransientInstance, persist, persistentIfNotAlready, raiseError, remove, setContainer, uniqueMatch, uniqueMatch, uniqueMatch, uniqueMatch, validate, warnUser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFactoryAndRepository

public AbstractFactoryAndRepository()
Method Detail

newPersistentInstance

protected <T> T newPersistentInstance(java.lang.Class<T> ofClass)
Returns a new instance of the specified class that will have been persisted.

This method isn't quite deprecated, but generally consider using AbstractContainedObject.newTransientInstance(Class) instead.


newInstance

protected <T> T newInstance(java.lang.Class<T> ofClass,
                            java.lang.Object object)
Returns a new instance of the specified class that has the sane persisted state as the specified object.

This method isn't quite deprecated, but generally consider using AbstractContainedObject.newTransientInstance(Class) instead.



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