You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2017/12/14 10:11:33 UTC

[isis] branch master updated: ISIS-1793: updates docs for MetaModelService4

This is an automated email from the ASF dual-hosted git repository.

danhaywood pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git


The following commit(s) were added to refs/heads/master by this push:
     new 5eab028  ISIS-1793: updates docs for MetaModelService4
5eab028 is described below

commit 5eab028a648aa07ae9d9d5d4c3859899935bc0ed
Author: Dan Haywood <da...@haywood-associates.co.uk>
AuthorDate: Thu Dec 14 10:11:19 2017 +0000

    ISIS-1793: updates docs for MetaModelService4
---
 .../rgsvc/_rgsvc_metadata-api_MetamodelService.adoc     | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

diff --git a/adocs/documentation/src/main/asciidoc/guides/rgsvc/_rgsvc_metadata-api_MetamodelService.adoc b/adocs/documentation/src/main/asciidoc/guides/rgsvc/_rgsvc_metadata-api_MetamodelService.adoc
index 899da01..a0d8d54 100644
--- a/adocs/documentation/src/main/asciidoc/guides/rgsvc/_rgsvc_metadata-api_MetamodelService.adoc
+++ b/adocs/documentation/src/main/asciidoc/guides/rgsvc/_rgsvc_metadata-api_MetamodelService.adoc
@@ -1,12 +1,13 @@
 [[_rgsvc_metadata-api_MetamodelService]]
-= `MetaModelService3`
+= `MetaModelService`
 :Notice: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at. http://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law or ag [...]
 :_basedir: ../../
 :_imagesdir: images/
 
 
 
-The `MetaModelService3` service provides access to a number of aspects of Apache Isis' internal metamodel.
+The `MetaModelService` service (and its various subtypes) provides access to a number of aspects of Apache Isis' internal metamodel.
+
 
 
 == API
@@ -16,12 +17,13 @@ The API defined by the service is:
 
 [source,java]
 ----
-public interface MetaModelService2 {
+public interface MetaModelService4 {
     Class<?> fromObjectType(String objectType);   // <1>
     String toObjectType(Class<?> domainType);     // <2>
     void rebuild(Class<?> domainType);            // <3>
     List<DomainMember> export();                  // <4>
 
+    // introduced in MetaModelService2
     enum Sort {                                   // <5>
         VIEW_MODEL, JDO_ENTITY, DOMAIN_SERVICE,
         MIXIN, VALUE, COLLECTION, UNKNOWN;
@@ -32,8 +34,14 @@ public interface MetaModelService2 {
     }
     Sort sortOf(Class<?> domainType);             // <6>
     Sort sortOf(Bookmark bookmark);
+
+    // introduced in MetaModelService3
     Sort sortOf(Class<?> domainType, Mode mode);
     Sort sortOf(Bookmark bookmark, Mode mode);
+
+    // introduced in MetaModelService4
+    AppManifest getAppManifest();                 // <7>
+    AppManifest2 getAppManifest2();
 }
 ----
 <1> reverse lookup of a domain class' object type
@@ -42,7 +50,8 @@ public interface MetaModelService2 {
 <4> returns a list of representations of each of member of each domain class.
 <5> what sort of object a domain type is (or bookmark) represents
 <6> whether to throw an exception or return `Sort.UNKNOWN` if the object type is not recognized.  (The overloads with no `Mode` parameter default to strict mode).
-
+<7> (As of `1.16.0-SNAPSHOT`), returns the `AppManifest` used to bootstrap the application.
+If an `AppManifest2` was used (from a `Module`), then this is also returned (else just `null`).
 
 == Implementation
 

-- 
To stop receiving notification emails like this one, please contact
['"commits@isis.apache.org" <co...@isis.apache.org>'].