org.nakedobjects.metamodel.runtimecontext.noruntime
Class RuntimeContextNoRuntime

java.lang.Object
  extended by org.nakedobjects.metamodel.runtimecontext.RuntimeContextAbstract
      extended by org.nakedobjects.metamodel.runtimecontext.noruntime.RuntimeContextNoRuntime
All Implemented Interfaces:
Injectable, RuntimeContext, DomainObjectContainerAware, SpecificationLoaderAware

public class RuntimeContextNoRuntime
extends RuntimeContextAbstract


Constructor Summary
RuntimeContextNoRuntime()
           
 
Method Summary
 NakedObject adapterFor(java.lang.Object pattern)
          Provided by the AdapterManager when used by framework.
 NakedObject adapterFor(java.lang.Object pojo, NakedObject ownerAdapter, Identified identified)
          Provided by the AdapterManager when used by framework.
 java.util.List<NakedObject> allInstances(NakedObjectSpecification noSpec)
           
<T> java.util.List<NakedObject>
allMatchingQuery(Query<T> query)
          Provided by PersistenceSession when used by framework.
 void commit()
          Provided by TransactionManager when used by framework.
 NakedObject createTransientInstance(NakedObjectSpecification spec)
          Provided by the PersistenceSession when used by framework.
<T> NakedObject
firstMatchingQuery(Query<T> query)
          Provided by PersistenceSession when used by framework.
 boolean flush()
          Provided by TransactionManager when used by framework.
 NakedObject getAdapterFor(java.lang.Object pojo)
          Provided by the AdapterManager when used by framework.
 NakedObject getAdapterFor(Oid oid)
          Provided by the AdapterManager when used by framework.
 AuthenticationSession getAuthenticationSession()
          Provided by AuthenticationManager when used by framework.
 java.util.List<NakedObject> getServices()
          Just returns an empty array.
 void informUser(java.lang.String message)
          Provided by MessageBroker when used by framework.
 void injectDependenciesInto(java.lang.Object object)
          Unlike most of the methods in this implementation, does nothing (because this will always be called, even in a no-runtime context).
 java.lang.Object instantiate(java.lang.Class<?> cls)
          Provided by the ObjectFactory when used by framework.
 void makePersistent(NakedObject adapter)
          Provided by the PersistenceSession when used by framework.
 void objectChanged(NakedObject inObject)
          Provided by PersistenceSession when used by framework.
 void objectChanged(java.lang.Object object)
          TODO: combined with RuntimeContext.objectChanged(NakedObject).
 void raiseError(java.lang.String message)
           
 void remove(NakedObject adapter)
          Provided by UpdateNotifier and PersistenceSession when used by framework.
 void resolve(java.lang.Object parent)
          Provided by PersistenceSession when used by framework.
 void resolve(java.lang.Object parent, java.lang.Object field)
          Provided by PersistenceSession when used by framework.
 void warnUser(java.lang.String message)
          Provided by MessageBroker when used by framework.
 
Methods inherited from class org.nakedobjects.metamodel.runtimecontext.RuntimeContextAbstract
getContainer, getSpecificationLoader, injectInto, setContainer, setSpecificationLoader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuntimeContextNoRuntime

public RuntimeContextNoRuntime()
Method Detail

getAuthenticationSession

public AuthenticationSession getAuthenticationSession()
Description copied from interface: RuntimeContext
Provided by AuthenticationManager when used by framework.


getAdapterFor

public NakedObject getAdapterFor(java.lang.Object pojo)
Description copied from interface: RuntimeContext
Provided by the AdapterManager when used by framework.


getAdapterFor

public NakedObject getAdapterFor(Oid oid)
Description copied from interface: RuntimeContext
Provided by the AdapterManager when used by framework.


adapterFor

public NakedObject adapterFor(java.lang.Object pattern)
Description copied from interface: RuntimeContext
Provided by the AdapterManager when used by framework.


adapterFor

public NakedObject adapterFor(java.lang.Object pojo,
                              NakedObject ownerAdapter,
                              Identified identified)
Description copied from interface: RuntimeContext
Provided by the AdapterManager when used by framework.


createTransientInstance

public NakedObject createTransientInstance(NakedObjectSpecification spec)
Description copied from interface: RuntimeContext
Provided by the PersistenceSession when used by framework.


instantiate

public java.lang.Object instantiate(java.lang.Class<?> cls)
                             throws ObjectInstantiationException
Description copied from interface: RuntimeContext
Provided by the ObjectFactory when used by framework.

Throws:
ObjectInstantiationException

resolve

public void resolve(java.lang.Object parent)
Description copied from interface: RuntimeContext
Provided by PersistenceSession when used by framework.


resolve

public void resolve(java.lang.Object parent,
                    java.lang.Object field)
Description copied from interface: RuntimeContext
Provided by PersistenceSession when used by framework.


objectChanged

public void objectChanged(NakedObject inObject)
Description copied from interface: RuntimeContext
Provided by PersistenceSession when used by framework.


objectChanged

public void objectChanged(java.lang.Object object)
Description copied from interface: RuntimeContext
TODO: combined with RuntimeContext.objectChanged(NakedObject).


makePersistent

public void makePersistent(NakedObject adapter)
Description copied from interface: RuntimeContext
Provided by the PersistenceSession when used by framework.


remove

public void remove(NakedObject adapter)
Description copied from interface: RuntimeContext
Provided by UpdateNotifier and PersistenceSession when used by framework.


flush

public boolean flush()
Description copied from interface: RuntimeContext
Provided by TransactionManager when used by framework.


commit

public void commit()
Description copied from interface: RuntimeContext
Provided by TransactionManager when used by framework.


allInstances

public java.util.List<NakedObject> allInstances(NakedObjectSpecification noSpec)

allMatchingQuery

public <T> java.util.List<NakedObject> allMatchingQuery(Query<T> query)
Description copied from interface: RuntimeContext
Provided by PersistenceSession when used by framework.


firstMatchingQuery

public <T> NakedObject firstMatchingQuery(Query<T> query)
Description copied from interface: RuntimeContext
Provided by PersistenceSession when used by framework.


informUser

public void informUser(java.lang.String message)
Description copied from interface: RuntimeContext
Provided by MessageBroker when used by framework.


warnUser

public void warnUser(java.lang.String message)
Description copied from interface: RuntimeContext
Provided by MessageBroker when used by framework.


raiseError

public void raiseError(java.lang.String message)

getServices

public java.util.List<NakedObject> getServices()
Just returns an empty array.


injectDependenciesInto

public void injectDependenciesInto(java.lang.Object object)
Unlike most of the methods in this implementation, does nothing (because this will always be called, even in a no-runtime context).



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