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 2015/10/09 00:05:58 UTC
[1/2] isis git commit: ISIS-1208: moved the binding of AppManifest to
IsisInjectModule,
rather than duplicate in IsisWicketModule and IsisWebAppBootstrapper.
Repository: isis
Updated Branches:
refs/heads/master d138964b4 -> 64b49ef8f
ISIS-1208: moved the binding of AppManifest to IsisInjectModule, rather than duplicate in IsisWicketModule and IsisWebAppBootstrapper.
Project: http://git-wip-us.apache.org/repos/asf/isis/repo
Commit: http://git-wip-us.apache.org/repos/asf/isis/commit/9dcc630f
Tree: http://git-wip-us.apache.org/repos/asf/isis/tree/9dcc630f
Diff: http://git-wip-us.apache.org/repos/asf/isis/diff/9dcc630f
Branch: refs/heads/master
Commit: 9dcc630fef885520d7fe28a14e47885d37771470
Parents: d138964
Author: Dan Haywood <da...@haywood-associates.co.uk>
Authored: Thu Oct 8 22:52:49 2015 +0100
Committer: Dan Haywood <da...@haywood-associates.co.uk>
Committed: Thu Oct 8 22:52:49 2015 +0100
----------------------------------------------------------------------
.../core/runtime/runner/IsisInjectModule.java | 1 +
.../IsisSystemThatUsesInstallersFactory.java | 19 +++++++++++++------
.../isis/core/webapp/IsisWebAppBootstrapper.java | 10 +---------
.../viewer/wicket/viewer/IsisWicketModule.java | 4 ----
4 files changed, 15 insertions(+), 19 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/isis/blob/9dcc630f/core/runtime/src/main/java/org/apache/isis/core/runtime/runner/IsisInjectModule.java
----------------------------------------------------------------------
diff --git a/core/runtime/src/main/java/org/apache/isis/core/runtime/runner/IsisInjectModule.java b/core/runtime/src/main/java/org/apache/isis/core/runtime/runner/IsisInjectModule.java
index bb9695b..27a40b6 100644
--- a/core/runtime/src/main/java/org/apache/isis/core/runtime/runner/IsisInjectModule.java
+++ b/core/runtime/src/main/java/org/apache/isis/core/runtime/runner/IsisInjectModule.java
@@ -116,6 +116,7 @@ public class IsisInjectModule extends AbstractModule {
requireBinding(DeploymentType.class);
requireBinding(IsisConfigurationBuilder.class);
requireBinding(InstallerLookup.class);
+ bind(AppManifest.class).toInstance(IsisSystemThatUsesInstallersFactory.APP_MANIFEST_NOOP);
}
@SuppressWarnings("unused")
http://git-wip-us.apache.org/repos/asf/isis/blob/9dcc630f/core/runtime/src/main/java/org/apache/isis/core/runtime/systemusinginstallers/IsisSystemThatUsesInstallersFactory.java
----------------------------------------------------------------------
diff --git a/core/runtime/src/main/java/org/apache/isis/core/runtime/systemusinginstallers/IsisSystemThatUsesInstallersFactory.java b/core/runtime/src/main/java/org/apache/isis/core/runtime/systemusinginstallers/IsisSystemThatUsesInstallersFactory.java
index 587fc4c..9431e13 100644
--- a/core/runtime/src/main/java/org/apache/isis/core/runtime/systemusinginstallers/IsisSystemThatUsesInstallersFactory.java
+++ b/core/runtime/src/main/java/org/apache/isis/core/runtime/systemusinginstallers/IsisSystemThatUsesInstallersFactory.java
@@ -38,13 +38,9 @@ import org.apache.isis.core.runtime.system.IsisSystemFactory;
public class IsisSystemThatUsesInstallersFactory implements IsisSystemFactory {
/**
- * Placeholder for no {@link AppManifest}.
- *
- * <p>
- * This is bound in by default in <tt>IsisWicketModule</tt>, but is replaced with
- * null in {@link #createSystem(DeploymentType, AppManifest)}.
- * </p>
+ * @deprecated - renamed to {@link #APP_MANIFEST_NOOP}
*/
+ @Deprecated
public static final AppManifest NOOP = new AppManifest() {
@Override public List<Class<?>> getModules() {
return null;
@@ -69,6 +65,17 @@ public class IsisSystemThatUsesInstallersFactory implements IsisSystemFactory {
return null;
}
};
+
+ /**
+ * Placeholder for no {@link AppManifest}.
+ *
+ * <p>
+ * This is bound in by default in <tt>IsisWicketModule</tt>, but is replaced with
+ * null in {@link #createSystem(DeploymentType, AppManifest)}.
+ * </p>
+ */
+ public static final AppManifest APP_MANIFEST_NOOP = NOOP;
+
private final InstallerLookup installerLookup;
@Inject
http://git-wip-us.apache.org/repos/asf/isis/blob/9dcc630f/core/runtime/src/main/java/org/apache/isis/core/webapp/IsisWebAppBootstrapper.java
----------------------------------------------------------------------
diff --git a/core/runtime/src/main/java/org/apache/isis/core/webapp/IsisWebAppBootstrapper.java b/core/runtime/src/main/java/org/apache/isis/core/webapp/IsisWebAppBootstrapper.java
index aa3e8b7..5886a3f 100644
--- a/core/runtime/src/main/java/org/apache/isis/core/webapp/IsisWebAppBootstrapper.java
+++ b/core/runtime/src/main/java/org/apache/isis/core/webapp/IsisWebAppBootstrapper.java
@@ -26,14 +26,12 @@ import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import com.google.common.collect.Lists;
-import com.google.inject.AbstractModule;
import com.google.inject.Guice;
import com.google.inject.Injector;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import org.apache.isis.applib.AppManifest;
import org.apache.isis.core.commons.config.IsisConfigurationBuilder;
import org.apache.isis.core.commons.config.IsisConfigurationBuilderPrimer;
import org.apache.isis.core.commons.config.IsisConfigurationBuilderResourceStreams;
@@ -49,7 +47,6 @@ import org.apache.isis.core.runtime.system.DeploymentType;
import org.apache.isis.core.runtime.system.IsisSystem;
import org.apache.isis.core.runtime.system.SystemConstants;
import org.apache.isis.core.runtime.system.context.IsisContext;
-import org.apache.isis.core.runtime.systemusinginstallers.IsisSystemThatUsesInstallersFactory;
import org.apache.isis.core.webapp.config.ResourceStreamSourceForWebInf;
/**
@@ -135,12 +132,7 @@ public class IsisWebAppBootstrapper implements ServletContextListener {
private Injector createGuiceInjector(final IsisConfigurationBuilder isisConfigurationBuilder, final DeploymentType deploymentType, final InstallerLookup installerLookup) {
final IsisInjectModule isisModule = new IsisInjectModule(deploymentType, isisConfigurationBuilder, installerLookup);
- return Guice.createInjector(isisModule, new AbstractModule(){
- @Override
- protected void configure() {
- bind(AppManifest.class).toInstance(IsisSystemThatUsesInstallersFactory.NOOP);
- }
- });
+ return Guice.createInjector(isisModule);
}
@SuppressWarnings("unchecked")
http://git-wip-us.apache.org/repos/asf/isis/blob/9dcc630f/core/viewer-wicket-impl/src/main/java/org/apache/isis/viewer/wicket/viewer/IsisWicketModule.java
----------------------------------------------------------------------
diff --git a/core/viewer-wicket-impl/src/main/java/org/apache/isis/viewer/wicket/viewer/IsisWicketModule.java b/core/viewer-wicket-impl/src/main/java/org/apache/isis/viewer/wicket/viewer/IsisWicketModule.java
index 219c379..9f6cd8a 100644
--- a/core/viewer-wicket-impl/src/main/java/org/apache/isis/viewer/wicket/viewer/IsisWicketModule.java
+++ b/core/viewer-wicket-impl/src/main/java/org/apache/isis/viewer/wicket/viewer/IsisWicketModule.java
@@ -23,12 +23,10 @@ import com.google.inject.AbstractModule;
import com.google.inject.name.Names;
import com.google.inject.util.Providers;
-import org.apache.isis.applib.AppManifest;
import org.apache.isis.applib.services.email.EmailService;
import org.apache.isis.applib.services.userreg.EmailNotificationService;
import org.apache.isis.core.runtime.services.email.EmailServiceDefault;
import org.apache.isis.core.runtime.services.userreg.EmailNotificationServiceDefault;
-import org.apache.isis.core.runtime.systemusinginstallers.IsisSystemThatUsesInstallersFactory;
import org.apache.isis.viewer.wicket.model.isis.WicketViewerSettings;
import org.apache.isis.viewer.wicket.model.models.ImageResourceCache;
import org.apache.isis.viewer.wicket.ui.app.registry.ComponentFactoryRegistrar;
@@ -96,7 +94,5 @@ public class IsisWicketModule extends AbstractModule {
bind(String.class).annotatedWith(Names.named("applicationJs")).toProvider(Providers.of((String)null));
bind(String.class).annotatedWith(Names.named("welcomeMessage")).toProvider(Providers.of((String)null));
bind(String.class).annotatedWith(Names.named("aboutMessage")).toProvider(Providers.of((String)null));
-
- bind(AppManifest.class).toInstance(IsisSystemThatUsesInstallersFactory.NOOP);
}
}
[2/2] isis git commit: ISIS-1195: fixing typo in simpleapp.
Posted by da...@apache.org.
ISIS-1195: fixing typo in simpleapp.
Project: http://git-wip-us.apache.org/repos/asf/isis/repo
Commit: http://git-wip-us.apache.org/repos/asf/isis/commit/64b49ef8
Tree: http://git-wip-us.apache.org/repos/asf/isis/tree/64b49ef8
Diff: http://git-wip-us.apache.org/repos/asf/isis/diff/64b49ef8
Branch: refs/heads/master
Commit: 64b49ef8f60439287f293c5cdcfda81028c5e94f
Parents: 9dcc630
Author: Dan Haywood <da...@haywood-associates.co.uk>
Authored: Thu Oct 8 22:53:19 2015 +0100
Committer: Dan Haywood <da...@haywood-associates.co.uk>
Committed: Thu Oct 8 22:53:19 2015 +0100
----------------------------------------------------------------------
.../simpleapp/webapp/src/main/webapp/WEB-INF/isis.properties | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/isis/blob/64b49ef8/example/application/simpleapp/webapp/src/main/webapp/WEB-INF/isis.properties
----------------------------------------------------------------------
diff --git a/example/application/simpleapp/webapp/src/main/webapp/WEB-INF/isis.properties b/example/application/simpleapp/webapp/src/main/webapp/WEB-INF/isis.properties
index effbe98..eb801bd 100644
--- a/example/application/simpleapp/webapp/src/main/webapp/WEB-INF/isis.properties
+++ b/example/application/simpleapp/webapp/src/main/webapp/WEB-INF/isis.properties
@@ -32,7 +32,7 @@
isis.appManifest=domainapp.app.DomainAppAppManifest
#isis.appManifest=domainapp.app.DomainAppAppManifestBypassSecurity
-#isis.appManifest=domainapp.app.DomainAppManifestWithFixtures
+#isis.appManifest=domainapp.app.DomainAppAppManifestWithFixtures