cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tomek...@apache.org
Subject svn commit: r1053052 - in /cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui: accesscontroler/ browser/ common/ settings/
Date Mon, 27 Dec 2010 12:22:25 GMT
Author: tomekopo
Date: Mon Dec 27 12:22:24 2010
New Revision: 1053052

URL: http://svn.apache.org/viewvc?rev=1053052&view=rev
Log:
Fix regression bug: when user switch between tabs, many instance of the views has been created

Modified:
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/accesscontroler/AccessControlPresenter.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/accesscontroler/AccessControlViewImpl.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/browser/BrowsePresenter.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/browser/BrowseViewImpl.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/browser/EditCriteriaPresenter.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/browser/EditCriteriaViewImpl.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/browser/NavigationSidebarViewImpl.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/browser/ViewerPresenter.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/browser/ViewerViewImpl.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/common/NavigationHeaderViewImpl.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/settings/SettingsPresenter.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/settings/SettingsViewImpl.java

Modified: cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/accesscontroler/AccessControlPresenter.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/accesscontroler/AccessControlPresenter.java?rev=1053052&r1=1053051&r2=1053052&view=diff
==============================================================================
--- cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/accesscontroler/AccessControlPresenter.java
(original)
+++ cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/accesscontroler/AccessControlPresenter.java
Mon Dec 27 12:22:24 2010
@@ -24,6 +24,7 @@ import javax.annotation.Nullable;
 
 import com.google.gwt.user.client.ui.HasWidgets;
 import com.google.inject.Inject;
+import com.google.inject.Singleton;
 import com.google.inject.name.Named;
 import org.apache.cxf.management.web.logging.logbrowser.client.EventBus;
 import org.apache.cxf.management.web.logging.logbrowser.client.event.RemoteStorageAccessDeniedEvent;
@@ -38,6 +39,7 @@ import static org.apache.cxf.management.
 import static org.apache.cxf.management.web.logging.logbrowser.client.service.settings
         .SettingsFacade.StorageStrategy.REMOTE;
 
+@Singleton
 public class AccessControlPresenter extends BasePresenter implements AccessControlView.Presenter
{
 
     @Nonnull

Modified: cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/accesscontroler/AccessControlViewImpl.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/accesscontroler/AccessControlViewImpl.java?rev=1053052&r1=1053051&r2=1053052&view=diff
==============================================================================
--- cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/accesscontroler/AccessControlViewImpl.java
(original)
+++ cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/accesscontroler/AccessControlViewImpl.java
Mon Dec 27 12:22:24 2010
@@ -35,7 +35,9 @@ import com.google.gwt.user.client.ui.Lab
 import com.google.gwt.user.client.ui.PasswordTextBox;
 import com.google.gwt.user.client.ui.TextBox;
 import com.google.gwt.user.client.ui.Widget;
+import com.google.inject.Singleton;
 
+@Singleton
 public class AccessControlViewImpl extends Composite implements AccessControlView {
 
     @UiTemplate("AccessControlView.ui.xml")

Modified: cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/browser/BrowsePresenter.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/browser/BrowsePresenter.java?rev=1053052&r1=1053051&r2=1053052&view=diff
==============================================================================
--- cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/browser/BrowsePresenter.java
(original)
+++ cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/browser/BrowsePresenter.java
Mon Dec 27 12:22:24 2010
@@ -22,12 +22,14 @@ package org.apache.cxf.management.web.lo
 import javax.annotation.Nonnull;
 
 import com.google.inject.Inject;
+import com.google.inject.Singleton;
 import com.google.inject.name.Named;
 import org.apache.cxf.management.web.logging.logbrowser.client.EventBus;
 import org.apache.cxf.management.web.logging.logbrowser.client.ui.BasePresenter;
 import org.apache.cxf.management.web.logging.logbrowser.client.ui.BindStrategy;
 import org.apache.cxf.management.web.logging.logbrowser.client.ui.common.NavigationHeaderPresenter;
 
+@Singleton
 public class BrowsePresenter extends BasePresenter implements BrowseView.Presenter {
 
     @Inject

Modified: cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/browser/BrowseViewImpl.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/browser/BrowseViewImpl.java?rev=1053052&r1=1053051&r2=1053052&view=diff
==============================================================================
--- cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/browser/BrowseViewImpl.java
(original)
+++ cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/browser/BrowseViewImpl.java
Mon Dec 27 12:22:24 2010
@@ -30,7 +30,9 @@ import com.google.gwt.user.client.ui.Flo
 import com.google.gwt.user.client.ui.HasWidgets;
 import com.google.gwt.user.client.ui.Widget;
 import com.google.inject.Inject;
+import com.google.inject.Singleton;
 
+@Singleton
 public class BrowseViewImpl extends Composite implements BrowseView {
 
     @UiTemplate("BrowseView.ui.xml")

Modified: cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/browser/EditCriteriaPresenter.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/browser/EditCriteriaPresenter.java?rev=1053052&r1=1053051&r2=1053052&view=diff
==============================================================================
--- cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/browser/EditCriteriaPresenter.java
(original)
+++ cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/browser/EditCriteriaPresenter.java
Mon Dec 27 12:22:24 2010
@@ -22,11 +22,13 @@ package org.apache.cxf.management.web.lo
 import javax.annotation.Nonnull;
 
 import com.google.inject.Inject;
+import com.google.inject.Singleton;
 import com.google.inject.name.Named;
 import org.apache.cxf.management.web.logging.logbrowser.client.EventBus;
 import org.apache.cxf.management.web.logging.logbrowser.client.ui.BasePresenter;
 import org.apache.cxf.management.web.logging.logbrowser.client.ui.BindStrategy;
 
+@Singleton
 public class EditCriteriaPresenter extends BasePresenter implements EditCriteriaView.Presenter
{
 
     @Nonnull

Modified: cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/browser/EditCriteriaViewImpl.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/browser/EditCriteriaViewImpl.java?rev=1053052&r1=1053051&r2=1053052&view=diff
==============================================================================
--- cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/browser/EditCriteriaViewImpl.java
(original)
+++ cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/browser/EditCriteriaViewImpl.java
Mon Dec 27 12:22:24 2010
@@ -27,9 +27,11 @@ import com.google.gwt.uibinder.client.Ui
 import com.google.gwt.user.client.ui.Composite;
 import com.google.gwt.user.client.ui.Widget;
 import com.google.inject.Inject;
+import com.google.inject.Singleton;
 import org.apache.cxf.management.web.logging.logbrowser.client.ui.AbstractDialog;
 import org.apache.cxf.management.web.logging.logbrowser.client.ui.resources.LogBrowserConstans;
 
+@Singleton
 public class EditCriteriaViewImpl extends AbstractDialog implements EditCriteriaView {
 
     @Nonnull

Modified: cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/browser/NavigationSidebarViewImpl.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/browser/NavigationSidebarViewImpl.java?rev=1053052&r1=1053051&r2=1053052&view=diff
==============================================================================
--- cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/browser/NavigationSidebarViewImpl.java
(original)
+++ cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/browser/NavigationSidebarViewImpl.java
Mon Dec 27 12:22:24 2010
@@ -32,8 +32,10 @@ import com.google.gwt.uibinder.client.Ui
 import com.google.gwt.uibinder.client.UiTemplate;
 import com.google.gwt.user.client.ui.Composite;
 import com.google.gwt.user.client.ui.Widget;
+import com.google.inject.Singleton;
 import org.apache.cxf.management.web.logging.logbrowser.client.service.settings.Subscription;
 
+@Singleton
 public class NavigationSidebarViewImpl extends Composite implements NavigationSidebarView
{
 
     @UiTemplate("NavigationSidebarView.ui.xml")

Modified: cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/browser/ViewerPresenter.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/browser/ViewerPresenter.java?rev=1053052&r1=1053051&r2=1053052&view=diff
==============================================================================
--- cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/browser/ViewerPresenter.java
(original)
+++ cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/browser/ViewerPresenter.java
Mon Dec 27 12:22:24 2010
@@ -23,6 +23,7 @@ import javax.annotation.Nonnull;
 
 import com.google.gwt.http.client.Request;
 import com.google.inject.Inject;
+import com.google.inject.Singleton;
 import com.google.inject.name.Named;
 import org.apache.cxf.management.web.logging.logbrowser.client.EventBus;
 import org.apache.cxf.management.web.logging.logbrowser.client.event.SelectedSubscriptionEvent;
@@ -34,6 +35,7 @@ import org.apache.cxf.management.web.log
 import org.apache.cxf.management.web.logging.logbrowser.client.ui.resources.LogBrowserConstans;
 import org.apache.cxf.management.web.logging.logbrowser.client.ui.resources.LogBrowserResources;
 
+@Singleton
 public class ViewerPresenter extends BasePresenter implements ViewerView.Presenter {
 
     @Nonnull

Modified: cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/browser/ViewerViewImpl.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/browser/ViewerViewImpl.java?rev=1053052&r1=1053051&r2=1053052&view=diff
==============================================================================
--- cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/browser/ViewerViewImpl.java
(original)
+++ cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/browser/ViewerViewImpl.java
Mon Dec 27 12:22:24 2010
@@ -36,10 +36,12 @@ import com.google.gwt.user.client.ui.Com
 import com.google.gwt.user.client.ui.HTML;
 import com.google.gwt.user.client.ui.Widget;
 import com.google.inject.Inject;
+import com.google.inject.Singleton;
 import org.apache.cxf.management.web.logging.logbrowser.client.service.browser.Entry;
 import org.apache.cxf.management.web.logging.logbrowser.client.service.browser.Links;
 import org.apache.cxf.management.web.logging.logbrowser.client.ui.resources.LogBrowserConstans;
 
+@Singleton
 public class ViewerViewImpl extends Composite implements ViewerView {
 
     private static final DateTimeFormat DT_FORMATTER =

Modified: cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/common/NavigationHeaderViewImpl.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/common/NavigationHeaderViewImpl.java?rev=1053052&r1=1053051&r2=1053052&view=diff
==============================================================================
--- cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/common/NavigationHeaderViewImpl.java
(original)
+++ cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/common/NavigationHeaderViewImpl.java
Mon Dec 27 12:22:24 2010
@@ -28,7 +28,9 @@ import com.google.gwt.uibinder.client.Ui
 import com.google.gwt.uibinder.client.UiTemplate;
 import com.google.gwt.user.client.ui.Composite;
 import com.google.gwt.user.client.ui.Widget;
+import com.google.inject.Singleton;
 
+@Singleton
 public class NavigationHeaderViewImpl extends Composite implements NavigationHeaderView {
 
     @UiTemplate("NavigationHeaderView.ui.xml")

Modified: cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/settings/SettingsPresenter.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/settings/SettingsPresenter.java?rev=1053052&r1=1053051&r2=1053052&view=diff
==============================================================================
--- cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/settings/SettingsPresenter.java
(original)
+++ cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/settings/SettingsPresenter.java
Mon Dec 27 12:22:24 2010
@@ -27,6 +27,7 @@ import javax.annotation.Nullable;
 import com.google.gwt.user.client.ui.HasValue;
 import com.google.gwt.user.client.ui.HasWidgets;
 import com.google.inject.Inject;
+import com.google.inject.Singleton;
 import com.google.inject.name.Named;
 import org.apache.cxf.management.web.logging.logbrowser.client.EventBus;
 import org.apache.cxf.management.web.logging.logbrowser.client.event.ChangedSubscriptionsEvent;
@@ -39,6 +40,7 @@ import org.apache.cxf.management.web.log
 import org.apache.cxf.management.web.logging.logbrowser.client.ui.common.NavigationHeaderPresenter;
 import org.apache.cxf.management.web.logging.logbrowser.client.ui.resources.LogBrowserConstans;
 
+@Singleton
 public class SettingsPresenter extends BasePresenter
         implements SettingsView.Presenter, SubscriptionDialog.Presenter {
 

Modified: cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/settings/SettingsViewImpl.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/settings/SettingsViewImpl.java?rev=1053052&r1=1053051&r2=1053052&view=diff
==============================================================================
--- cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/settings/SettingsViewImpl.java
(original)
+++ cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/settings/SettingsViewImpl.java
Mon Dec 27 12:22:24 2010
@@ -37,8 +37,10 @@ import com.google.gwt.user.client.ui.Flo
 import com.google.gwt.user.client.ui.HasWidgets;
 import com.google.gwt.user.client.ui.Label;
 import com.google.gwt.user.client.ui.Widget;
+import com.google.inject.Singleton;
 import org.apache.cxf.management.web.logging.logbrowser.client.service.settings.Subscription;
 
+@Singleton
 public class SettingsViewImpl extends Composite implements SettingsView {
 
     @UiTemplate("SettingsView.ui.xml")



Mime
View raw message