polygene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From paulmer...@apache.org
Subject [1/7] polygene-java git commit: PolygeneAPI javadoc
Date Sun, 14 May 2017 14:33:18 GMT
Repository: polygene-java
Updated Branches:
  refs/heads/develop a14bde4aa -> 6c05d0a10


PolygeneAPI javadoc


Project: http://git-wip-us.apache.org/repos/asf/polygene-java/repo
Commit: http://git-wip-us.apache.org/repos/asf/polygene-java/commit/7f180c05
Tree: http://git-wip-us.apache.org/repos/asf/polygene-java/tree/7f180c05
Diff: http://git-wip-us.apache.org/repos/asf/polygene-java/diff/7f180c05

Branch: refs/heads/develop
Commit: 7f180c05b67720b2cca6b61e2b8b6a983b492a26
Parents: a14bde4
Author: Paul Merlin <paulmerlin@apache.org>
Authored: Sun May 14 15:48:19 2017 +0200
Committer: Paul Merlin <paulmerlin@apache.org>
Committed: Sun May 14 15:48:19 2017 +0200

----------------------------------------------------------------------
 .../org/apache/polygene/api/PolygeneAPI.java    | 26 ++++++++++----------
 .../polygene/runtime/PolygeneRuntimeImpl.java   |  1 +
 2 files changed, 14 insertions(+), 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/polygene-java/blob/7f180c05/core/api/src/main/java/org/apache/polygene/api/PolygeneAPI.java
----------------------------------------------------------------------
diff --git a/core/api/src/main/java/org/apache/polygene/api/PolygeneAPI.java b/core/api/src/main/java/org/apache/polygene/api/PolygeneAPI.java
index 3b2f46d..a9958a6 100644
--- a/core/api/src/main/java/org/apache/polygene/api/PolygeneAPI.java
+++ b/core/api/src/main/java/org/apache/polygene/api/PolygeneAPI.java
@@ -56,32 +56,32 @@ public interface PolygeneAPI
     <T> T dereference( T composite );
 
     /**
-     * Returns the Module or UnitOfWork where the Composite belongs.
+     * Returns the Module where the Composite, ServiceReference or UnitOfWork belongs.
      *
-     * @param compositeOrUow The Composite (Service, Value, Entity or Transient) or UnitOfWork
to lookup the Module it
-     *                       belongs to.
+     * @param compositeOrServiceReferenceOrUow The Composite (Service, Value, Entity or Transient)
or ServiceReference
+     *                                         or UnitOfWork to lookup the Module it belongs
to
      *
-     * @return The Module instance where the Composite or UnitOfWork belongs to.
+     * @return The Module instance where the Composite, ServiceReference or UnitOfWork belongs
to
      */
-    ModuleDescriptor moduleOf( Object compositeOrUow );
+    ModuleDescriptor moduleOf( Object compositeOrServiceReferenceOrUow );
 
     /**
-     * Returns the ModelDescriptor of the Composite.
+     * Returns the ModelDescriptor of the Composite or ServiceReference.
      *
-     * @param compositeOrServiceReference The Composite (Service, Value, Entity or Transient)
for which to lookup the
-     *                                    ModelDescriptor
+     * @param compositeOrServiceReference The Composite (Service, Value, Entity or Transient)
of ServiceReference
+     *                                    for which to lookup the ModelDescriptor
      *
-     * @return The ModelDescriptor of the Composite
+     * @return The ModelDescriptor of the Composite or ServiceReference
      */
     ModelDescriptor modelDescriptorFor( Object compositeOrServiceReference );
 
     /**
-     * Returns the CompositeDescriptor of the Composite.
+     * Returns the CompositeDescriptor of the Composite or ServiceReference.
      *
-     * @param compositeOrServiceReference The Composite (Service, Value, Entity or Transient)
for which to lookup the
-     *                                    CompositeDescriptor
+     * @param compositeOrServiceReference The Composite (Service, Value, Entity or Transient)
 or ServiceReference
+     *                                    for which to lookup the CompositeDescriptor
      *
-     * @return The CompositeDescriptor of the Composite
+     * @return The CompositeDescriptor of the Composite or ServiceReference
      */
     CompositeDescriptor compositeDescriptorFor( Object compositeOrServiceReference );
 

http://git-wip-us.apache.org/repos/asf/polygene-java/blob/7f180c05/core/runtime/src/main/java/org/apache/polygene/runtime/PolygeneRuntimeImpl.java
----------------------------------------------------------------------
diff --git a/core/runtime/src/main/java/org/apache/polygene/runtime/PolygeneRuntimeImpl.java
b/core/runtime/src/main/java/org/apache/polygene/runtime/PolygeneRuntimeImpl.java
index 37a602c..405ade0 100644
--- a/core/runtime/src/main/java/org/apache/polygene/runtime/PolygeneRuntimeImpl.java
+++ b/core/runtime/src/main/java/org/apache/polygene/runtime/PolygeneRuntimeImpl.java
@@ -165,6 +165,7 @@ public final class PolygeneRuntimeImpl
         }
         throw new IllegalArgumentException( "Wrong type. Must be one of "
                                             + Arrays.asList( TransientComposite.class, ValueComposite.class,
+                                                             EntityComposite.class,
                                                              ServiceComposite.class, ServiceReference.class,
                                                              UnitOfWork.class ) );
     }


Mime
View raw message