[kune-commits] r1295 - trunk/src/main/java/cc/kune/pspace/client
Vicente J. Ruiz Jurado
vjrj_ at ourproject.org
Fri Mar 25 21:22:14 CET 2011
Author: vjrj_
Date: 2011-03-25 21:22:13 +0100 (Fri, 25 Mar 2011)
New Revision: 1295
Added:
trunk/src/main/java/cc/kune/pspace/client/PSpaceParts.java
Log:
server refactorization
Added: trunk/src/main/java/cc/kune/pspace/client/PSpaceParts.java
===================================================================
--- trunk/src/main/java/cc/kune/pspace/client/PSpaceParts.java (rev 0)
+++ trunk/src/main/java/cc/kune/pspace/client/PSpaceParts.java 2011-03-25 20:22:13 UTC (rev 1295)
@@ -0,0 +1,21 @@
+package cc.kune.pspace.client;
+
+import cc.kune.core.client.init.AppStartEvent;
+import cc.kune.core.client.init.AppStartEvent.AppStartHandler;
+import cc.kune.core.client.state.Session;
+
+import com.google.inject.Inject;
+import com.google.inject.Provider;
+
+public class PSpaceParts {
+
+ @Inject
+ public PSpaceParts(final Session session, final Provider<PSpacePresenter> pspacePresenter) {
+ session.onInitDataReceived(true, new AppStartHandler() {
+ @Override
+ public void onAppStart(final AppStartEvent event) {
+ pspacePresenter.get();
+ }
+ });
+ }
+}
More information about the kune-commits
mailing list