polygene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From paulmer...@apache.org
Subject [16/50] polygene-java git commit: :libraries:spring refine
Date Mon, 15 May 2017 11:03:21 GMT
:libraries:spring refine


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

Branch: refs/heads/develop
Commit: 0ee07a1c3901436e7e8d39bc2a2c1a3ff2df7285
Parents: 0e98474
Author: Paul Merlin <paulmerlin@apache.org>
Authored: Mon May 15 10:11:23 2017 +0200
Committer: Paul Merlin <paulmerlin@apache.org>
Committed: Mon May 15 10:11:23 2017 +0200

----------------------------------------------------------------------
 .../application/PolygeneApplicationFactoryBean.java  | 15 +++++----------
 .../PolygeneBootstrapBeanDefinitionParser.java       |  2 +-
 2 files changed, 6 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/polygene-java/blob/0ee07a1c/libraries/spring/src/main/java/org/apache/polygene/library/spring/bootstrap/internal/application/PolygeneApplicationFactoryBean.java
----------------------------------------------------------------------
diff --git a/libraries/spring/src/main/java/org/apache/polygene/library/spring/bootstrap/internal/application/PolygeneApplicationFactoryBean.java
b/libraries/spring/src/main/java/org/apache/polygene/library/spring/bootstrap/internal/application/PolygeneApplicationFactoryBean.java
index 742052c..cbca71e 100644
--- a/libraries/spring/src/main/java/org/apache/polygene/library/spring/bootstrap/internal/application/PolygeneApplicationFactoryBean.java
+++ b/libraries/spring/src/main/java/org/apache/polygene/library/spring/bootstrap/internal/application/PolygeneApplicationFactoryBean.java
@@ -87,18 +87,13 @@ public final class PolygeneApplicationFactoryBean
         Energy4Java energy4Java = new Energy4Java();
         try
         {
-            return energy4Java.newApplication( new ApplicationAssembler()
-            {
-
-                @Override
-                public ApplicationAssembly assemble( ApplicationAssemblyFactory applicationFactory
)
-                        throws AssemblyException
+            return energy4Java.newApplication(
+                factory ->
                 {
-                    final ApplicationAssembly applicationAssembly = applicationFactory.newApplicationAssembly();
-                    PolygeneApplicationFactoryBean.this.applicationBootstrap.assemble( applicationAssembly
);
+                    ApplicationAssembly applicationAssembly = factory.newApplicationAssembly();
+                    applicationBootstrap.assemble( applicationAssembly );
                     return applicationAssembly;
-                }
-            } );
+                } );
         } catch ( AssemblyException e )
         {
             throw new BeanInitializationException( "Fail to bootstrap Polygene application.",
e );

http://git-wip-us.apache.org/repos/asf/polygene-java/blob/0ee07a1c/libraries/spring/src/main/java/org/apache/polygene/library/spring/bootstrap/internal/application/PolygeneBootstrapBeanDefinitionParser.java
----------------------------------------------------------------------
diff --git a/libraries/spring/src/main/java/org/apache/polygene/library/spring/bootstrap/internal/application/PolygeneBootstrapBeanDefinitionParser.java
b/libraries/spring/src/main/java/org/apache/polygene/library/spring/bootstrap/internal/application/PolygeneBootstrapBeanDefinitionParser.java
index 96508d6..694a1a7 100644
--- a/libraries/spring/src/main/java/org/apache/polygene/library/spring/bootstrap/internal/application/PolygeneBootstrapBeanDefinitionParser.java
+++ b/libraries/spring/src/main/java/org/apache/polygene/library/spring/bootstrap/internal/application/PolygeneBootstrapBeanDefinitionParser.java
@@ -54,7 +54,7 @@ public final class PolygeneBootstrapBeanDefinitionParser
     private PolygeneApplicationBootstrap createPolygeneApplicationBootstrap( Element anElement,
ParserContext aParserContext )
     {
         String bootstrapClassString = anElement.getAttribute( CLASS );
-        hasText( bootstrapClassString );
+        hasText( bootstrapClassString, "No " + CLASS + " attribute found" );
         XmlReaderContext readerContext = aParserContext.getReaderContext();
 
         Class<?> bootstrapClass;


Mime
View raw message