org.nakedobjects.metamodel.runtimecontext
Class RuntimeContextAbstract

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

public abstract class RuntimeContextAbstract
extends java.lang.Object
implements RuntimeContext, SpecificationLoaderAware, DomainObjectContainerAware


Constructor Summary
RuntimeContextAbstract()
           
 
Method Summary
protected  DomainObjectContainer getContainer()
           
 SpecificationLoader getSpecificationLoader()
           
 void injectInto(java.lang.Object candidate)
          Will inject itself into the candidate if the candidate implements the corresponding *Aware type.
 void setContainer(DomainObjectContainer container)
          So that RuntimeContext.injectDependenciesInto(Object) can also inject the DomainObjectContainer.
 void setSpecificationLoader(SpecificationLoader specificationLoader)
          Is injected into when the reflector is initialized.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.nakedobjects.metamodel.runtimecontext.RuntimeContext
adapterFor, adapterFor, allMatchingQuery, commit, createTransientInstance, firstMatchingQuery, flush, getAdapterFor, getAdapterFor, getAuthenticationSession, getServices, informUser, injectDependenciesInto, instantiate, makePersistent, objectChanged, objectChanged, raiseError, remove, resolve, resolve, warnUser
 

Constructor Detail

RuntimeContextAbstract

public RuntimeContextAbstract()
Method Detail

injectInto

public void injectInto(java.lang.Object candidate)
Description copied from interface: Injectable
Will inject itself into the candidate if the candidate implements the corresponding *Aware type.

Specified by:
injectInto in interface Injectable

getSpecificationLoader

public SpecificationLoader getSpecificationLoader()
Specified by:
getSpecificationLoader in interface RuntimeContext

setSpecificationLoader

public void setSpecificationLoader(SpecificationLoader specificationLoader)
Is injected into when the reflector is initialized.

Specified by:
setSpecificationLoader in interface SpecificationLoaderAware

getContainer

protected DomainObjectContainer getContainer()

setContainer

public void setContainer(DomainObjectContainer container)
So that RuntimeContext.injectDependenciesInto(Object) can also inject the DomainObjectContainer.

Specified by:
setContainer in interface RuntimeContext
Specified by:
setContainer in interface DomainObjectContainerAware


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