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 2016/10/21 15:01:03 UTC

[09/44] isis git commit: ISIS-1474: also allow implementations of AuthenticationManagerInstaller to be instantiated with no-arg constructor (same as behaviour in isis 1.12.x).

ISIS-1474: also allow implementations of AuthenticationManagerInstaller to be instantiated with no-arg constructor (same as behaviour in isis 1.12.x).


Project: http://git-wip-us.apache.org/repos/asf/isis/repo
Commit: http://git-wip-us.apache.org/repos/asf/isis/commit/6b9abc3c
Tree: http://git-wip-us.apache.org/repos/asf/isis/tree/6b9abc3c
Diff: http://git-wip-us.apache.org/repos/asf/isis/diff/6b9abc3c

Branch: refs/heads/master
Commit: 6b9abc3c695568f176166f662b55f018ac4c525e
Parents: e5ecb88
Author: Dan Haywood <da...@haywood-associates.co.uk>
Authored: Wed Sep 7 23:06:46 2016 +0200
Committer: Dan Haywood <da...@haywood-associates.co.uk>
Committed: Wed Sep 7 23:06:46 2016 +0200

----------------------------------------------------------------------
 .../IsisComponentProviderUsingInstallers.java             | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/isis/blob/6b9abc3c/core/runtime/src/main/java/org/apache/isis/core/runtime/systemusinginstallers/IsisComponentProviderUsingInstallers.java
----------------------------------------------------------------------
diff --git a/core/runtime/src/main/java/org/apache/isis/core/runtime/systemusinginstallers/IsisComponentProviderUsingInstallers.java b/core/runtime/src/main/java/org/apache/isis/core/runtime/systemusinginstallers/IsisComponentProviderUsingInstallers.java
index aa009b9..66edd6a 100644
--- a/core/runtime/src/main/java/org/apache/isis/core/runtime/systemusinginstallers/IsisComponentProviderUsingInstallers.java
+++ b/core/runtime/src/main/java/org/apache/isis/core/runtime/systemusinginstallers/IsisComponentProviderUsingInstallers.java
@@ -174,6 +174,16 @@ public class IsisComponentProviderUsingInstallers extends IsisComponentProvider
                     LOG.info("component installer not found; it will not be available: " + className);
                 } catch (final InstanceCreationClassException e) {
                     LOG.info("instance creation exception: " + e.getMessage());
+                } catch (final InstanceCreationException e) {
+                    try {
+                        final Installer object = (Installer) InstanceUtil.createInstance(className);
+                        LOG.debug("created component installer: " + object.getName() + " - " + className);
+                        installerList.add(object);
+                    } catch (final UnavailableClassException e2) {
+                        LOG.info("component installer not found; it will not be available: " + className);
+                    } catch (final InstanceCreationClassException e2) {
+                        LOG.info("instance creation exception: " + e2.getMessage());
+                    }
                 }
             }
         }