[isis] 09/34: ISIS-1727: uses lambda in IsisSessionFactoryBuilder
This is an automated email from the ASF dual-hosted git repository. ahuber pushed a commit to branch dev/2.0.0-M2 in repository https://gitbox.apache.org/repos/asf/isis.git commit f5812a86f402cfe05b486325b2ffe912b353c4ef Author: Dan HaywoodAuthorDate: Tue Sep 19 22:56:54 2017 +0100 ISIS-1727: uses lambda in IsisSessionFactoryBuilder --- .../system/session/IsisSessionFactoryBuilder.java | 25 ++ 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/core/runtime/src/main/java/org/apache/isis/core/runtime/system/session/IsisSessionFactoryBuilder.java b/core/runtime/src/main/java/org/apache/isis/core/runtime/system/session/IsisSessionFactoryBuilder.java index 7a56c93..52df40e 100644 --- a/core/runtime/src/main/java/org/apache/isis/core/runtime/system/session/IsisSessionFactoryBuilder.java +++ b/core/runtime/src/main/java/org/apache/isis/core/runtime/system/session/IsisSessionFactoryBuilder.java @@ -207,21 +207,18 @@ public class IsisSessionFactoryBuilder { isisSessionFactory.doInSession( -new Runnable() { -@Override -public void run() { -specificationLoader.postProcess(); -try { -specificationLoader.validateAndAssert(); - -} catch (final MetaModelInvalidException ex) { -// no need to use a higher level, such as error(...); the calling code will expose any metamodel -// validation errors in their own particular way. -if(LOG.isDebugEnabled()) { -LOG.debug("Meta model invalid", ex); -} - _Context.putSingleton(MetaModelInvalidException.class, ex); +() -> { +specificationLoader.postProcess(); +try { +specificationLoader.validateAndAssert(); + +} catch (final MetaModelInvalidException ex) { +// no need to use a higher level, such as error(...); the calling code will expose any metamodel +// validation errors in their own particular way. +if(LOG.isDebugEnabled()) { +LOG.debug("Meta model invalid", ex); } + _Context.putSingleton(MetaModelInvalidException.class, ex); } } ); -- To stop receiving notification emails like this one, please contact ahu...@apache.org.
[isis] 09/34: ISIS-1727: uses lambda in IsisSessionFactoryBuilder
This is an automated email from the ASF dual-hosted git repository. ahuber pushed a commit to branch dev/2.0.0-M2 in repository https://gitbox.apache.org/repos/asf/isis.git commit 5f8258a69bf6781cc44dc8e40d3366b9abaac43c Author: Dan HaywoodAuthorDate: Tue Sep 19 22:56:54 2017 +0100 ISIS-1727: uses lambda in IsisSessionFactoryBuilder --- .../system/session/IsisSessionFactoryBuilder.java | 25 ++ 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/core/runtime/src/main/java/org/apache/isis/core/runtime/system/session/IsisSessionFactoryBuilder.java b/core/runtime/src/main/java/org/apache/isis/core/runtime/system/session/IsisSessionFactoryBuilder.java index 7a56c93..52df40e 100644 --- a/core/runtime/src/main/java/org/apache/isis/core/runtime/system/session/IsisSessionFactoryBuilder.java +++ b/core/runtime/src/main/java/org/apache/isis/core/runtime/system/session/IsisSessionFactoryBuilder.java @@ -207,21 +207,18 @@ public class IsisSessionFactoryBuilder { isisSessionFactory.doInSession( -new Runnable() { -@Override -public void run() { -specificationLoader.postProcess(); -try { -specificationLoader.validateAndAssert(); - -} catch (final MetaModelInvalidException ex) { -// no need to use a higher level, such as error(...); the calling code will expose any metamodel -// validation errors in their own particular way. -if(LOG.isDebugEnabled()) { -LOG.debug("Meta model invalid", ex); -} - _Context.putSingleton(MetaModelInvalidException.class, ex); +() -> { +specificationLoader.postProcess(); +try { +specificationLoader.validateAndAssert(); + +} catch (final MetaModelInvalidException ex) { +// no need to use a higher level, such as error(...); the calling code will expose any metamodel +// validation errors in their own particular way. +if(LOG.isDebugEnabled()) { +LOG.debug("Meta model invalid", ex); } + _Context.putSingleton(MetaModelInvalidException.class, ex); } } ); -- To stop receiving notification emails like this one, please contact ahu...@apache.org.