org.nakedobjects.plugins.headless.embedded
Class NakedObjectsMetaModel

java.lang.Object
  extended by org.nakedobjects.plugins.headless.embedded.NakedObjectsMetaModel
All Implemented Interfaces:
ApplicationScopedComponent, Component

public class NakedObjectsMetaModel
extends java.lang.Object
implements ApplicationScopedComponent

Facade for the entire NakedObjects metamodel and supporting components.


Constructor Summary
NakedObjectsMetaModel(EmbeddedContext context, java.lang.Class<?>... serviceTypes)
           
 
Method Summary
 ClassSubstitutor getClassSubstitutor()
          The ClassSubstitutor in force, either defaulted or specified explicitly.
 CollectionTypeRegistry getCollectionTypeRegistry()
          The CollectionTypeRegistry in force, either defaulted or specified explicitly.
 NakedObjectConfiguration getConfiguration()
          The NakedObjectConfiguration in force, either defaulted or specified explicitly.
 java.util.Set<FacetDecorator> getFacetDecorators()
          The FacetDecorators in force, either defaulted or specified explicitly.
 MetaModelValidator getMetaModelValidator()
          The MetaModelValidator in force, either defaulted or specified explicitly.
 ProgrammingModelFacets getProgrammingModelFacets()
          The ProgrammingModelFacets in force, either defaulted or specified explicitly.
 ServicesInjector getServicesInjector()
          The ServicesInjector; can use to obtain the set of registered services.
 java.util.List<java.lang.Class<?>> getServiceTypes()
          The list of classes representing services, as specified in the constructor.
 SpecificationLoader getSpecificationLoader()
          Available once initialized.
 SpecificationTraverser getSpecificationTraverser()
          The SpecificationTraverser in force, either defaulted or specified explicitly.
 HeadlessViewer getViewer()
          Available once initialized.
 void init()
           
 void setClassSubstitutor(ClassSubstitutor classSubstitutor)
          Optionally specify the ClassSubstitutor.
 void setCollectionTypeRegistry(CollectionTypeRegistry collectionTypeRegistry)
          Optionally specify the CollectionTypeRegistry.
 void setConfiguration(NakedObjectConfiguration configuration)
          Optionally specify the NakedObjectConfiguration.
 void setFacetDecorators(java.util.Set<FacetDecorator> facetDecorators)
          Optionally specify the FacetDecorators.
 void setMetaModelValidator(MetaModelValidator metaModelValidator)
          Optionally specify the MetaModelValidator.
 void setProgrammingModelFacets(ProgrammingModelFacets programmingModelFacets)
          Optionally specify the ProgrammingModelFacets.
 void setSpecificationTraverser(SpecificationTraverser specificationTraverser)
          Optionally specify the SpecificationTraverser.
 void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NakedObjectsMetaModel

public NakedObjectsMetaModel(EmbeddedContext context,
                             java.lang.Class<?>... serviceTypes)
Method Detail

getServiceTypes

public java.util.List<java.lang.Class<?>> getServiceTypes()
The list of classes representing services, as specified in the constructor.

To obtain the instantiated services, use the ServicesInjector.getRegisteredServices() (available from getServicesInjector()).


init

public void init()
Specified by:
init in interface ApplicationScopedComponent

shutdown

public void shutdown()
Specified by:
shutdown in interface ApplicationScopedComponent

getSpecificationLoader

public SpecificationLoader getSpecificationLoader()
Available once initialized.


getViewer

public HeadlessViewer getViewer()
Available once initialized.


getServicesInjector

public ServicesInjector getServicesInjector()
The ServicesInjector; can use to obtain the set of registered services.

Available once initialized.


getConfiguration

public NakedObjectConfiguration getConfiguration()
The NakedObjectConfiguration in force, either defaulted or specified explicitly.


setConfiguration

public void setConfiguration(NakedObjectConfiguration configuration)
Optionally specify the NakedObjectConfiguration.

Call prior to init().


getClassSubstitutor

public ClassSubstitutor getClassSubstitutor()
The ClassSubstitutor in force, either defaulted or specified explicitly.


setClassSubstitutor

public void setClassSubstitutor(ClassSubstitutor classSubstitutor)
Optionally specify the ClassSubstitutor.

Call prior to init().


getCollectionTypeRegistry

public CollectionTypeRegistry getCollectionTypeRegistry()
The CollectionTypeRegistry in force, either defaulted or specified explicitly.


setCollectionTypeRegistry

public void setCollectionTypeRegistry(CollectionTypeRegistry collectionTypeRegistry)
Optionally specify the CollectionTypeRegistry.

Call prior to init().


getSpecificationTraverser

public SpecificationTraverser getSpecificationTraverser()
The SpecificationTraverser in force, either defaulted or specified explicitly.


setSpecificationTraverser

public void setSpecificationTraverser(SpecificationTraverser specificationTraverser)
Optionally specify the SpecificationTraverser.


getProgrammingModelFacets

public ProgrammingModelFacets getProgrammingModelFacets()
The ProgrammingModelFacets in force, either defaulted or specified explicitly.


setProgrammingModelFacets

public void setProgrammingModelFacets(ProgrammingModelFacets programmingModelFacets)
Optionally specify the ProgrammingModelFacets.

Call prior to init().


getFacetDecorators

public java.util.Set<FacetDecorator> getFacetDecorators()
The FacetDecorators in force, either defaulted or specified explicitly.


setFacetDecorators

public void setFacetDecorators(java.util.Set<FacetDecorator> facetDecorators)
Optionally specify the FacetDecorators.

Call prior to init().


getMetaModelValidator

public MetaModelValidator getMetaModelValidator()
The MetaModelValidator in force, either defaulted or specified explicitly.


setMetaModelValidator

public void setMetaModelValidator(MetaModelValidator metaModelValidator)
Optionally specify the MetaModelValidator.



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