Author: julien(a)jboss.com
Date: 2007-11-13 14:30:14 -0500 (Tue, 13 Nov 2007)
New Revision: 8912
Added:
branches/UIServer/uiserver/src/main/org/jboss/portal/presentation/server/ModelLoader.java
Modified:
branches/UIServer/uiserver/src/main/org/jboss/portal/presentation/RequestContext.java
Log:
udpates
Modified:
branches/UIServer/uiserver/src/main/org/jboss/portal/presentation/RequestContext.java
===================================================================
---
branches/UIServer/uiserver/src/main/org/jboss/portal/presentation/RequestContext.java 2007-11-13
18:29:00 UTC (rev 8911)
+++
branches/UIServer/uiserver/src/main/org/jboss/portal/presentation/RequestContext.java 2007-11-13
19:30:14 UTC (rev 8912)
@@ -24,6 +24,7 @@
import org.jboss.portal.presentation.action.server.ServerAction;
import org.jboss.portal.presentation.model2.UIContext;
+import org.jboss.portal.presentation.server.ModelLoader;
/**
* The contract that defines the services that the client provides to the server during a
server invocation.
@@ -46,6 +47,6 @@
/**
* Returns the root UI context provided by the portal.
*/
- UIContext getUIContext();
+ UIContext getUIContext(ModelLoader loader);
}
Added:
branches/UIServer/uiserver/src/main/org/jboss/portal/presentation/server/ModelLoader.java
===================================================================
---
branches/UIServer/uiserver/src/main/org/jboss/portal/presentation/server/ModelLoader.java
(rev 0)
+++
branches/UIServer/uiserver/src/main/org/jboss/portal/presentation/server/ModelLoader.java 2007-11-13
19:30:14 UTC (rev 8912)
@@ -0,0 +1,38 @@
+/******************************************************************************
+ * JBoss, a division of Red Hat *
+ * Copyright 2006, Red Hat Middleware, LLC, and individual *
+ * contributors as indicated by the @authors tag. See the *
+ * copyright.txt in the distribution for a full listing of *
+ * individual contributors. *
+ * *
+ * This is free software; you can redistribute it and/or modify it *
+ * under the terms of the GNU Lesser General Public License as *
+ * published by the Free Software Foundation; either version 2.1 of *
+ * the License, or (at your option) any later version. *
+ * *
+ * This software is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
+ * Lesser General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU Lesser General Public *
+ * License along with this software; if not, write to the Free *
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org. *
+ ******************************************************************************/
+package org.jboss.portal.presentation.server;
+
+import org.jboss.portal.presentation.model2.UIObject;
+
+/**
+ * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
+ * @version $Revision: 1.1 $
+ */
+public interface ModelLoader
+{
+
+ void loadState(UIObject object);
+
+ void loadChildren(UIObject object);
+
+}