Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought

Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Show Posts

* | |

  Show Posts
Pages: [1]
1  PureMVC Manifold / MultiCore Version / Re: Can't we create a specific GWT Java Multicore version? on: August 16, 2010, 12:27:23
Hi Tek,

Yes you are right.
However I think having several versions of PureMVC is not a good idea.
You want to use PureMVC on which Java IHM Framework?


2  PureMVC Manifold / MultiCore Version / Re: State Machine utility planned? on: February 18, 2010, 02:28:35

I think it possible to port the StateMachine for java multicore but i have to find a solution for parsing the xml configuration for the FSM Injector which must be generic for all platforms.

3  PureMVC Manifold / MultiCore Version / Re: testing the framework on: February 17, 2010, 01:17:23
You do not change the structure of the framework (PureMVC Multicore) if you want to compile it.
But you can change the structure of the client code (for exemple: EmployeeAdmin) of your project.

4  PureMVC Manifold / MultiCore Version / Re: testing the framework on: February 16, 2010, 10:07:24
if you change the structure of the folders by
org/puremvc/java by org/puremvc/java2

then you must change
<entry-point class="org.puremvc.java2.multicore.demos.gwt.EmployeeAdmin" />

and in each java source code you must modify the package and the import
package org.puremvc.java.multicore.demos.gwt;
import org.puremvc.java.multicore.demos.gwt.employeeadmin.ApplicationFacade;
package org.puremvc.java2.multicore.demos.gwt;
import org.puremvc.java2.multicore.demos.gwt.employeeadmin.ApplicationFacade;

5  PureMVC Manifold / MultiCore Version / Re: Why doesnt this port use concurrentHashMaps? on: February 10, 2010, 03:34:05
This port doesnt use ConcurrentHashMaps instead of HashMap+synchronized because PureMVC Multicore is GWT compliant.
GWT includes a library that emulates a subset of the Java runtime library and this library doesn't have

Thanks Jason, effectively, methods such as Facade.removeCore are not threadsafe and i have to release a new version with correct code.

6  PureMVC Manifold / Demos and Utils / Re: EmployeeAdmin - A Java / MultiCore / GWT Demo on: December 24, 2009, 08:17:44
The new EmployeeAdmin Demo is available for GWT2.
It use Declarative UI and new CSS.
The source code is available in the trunk svn directory and will be deployed for live demo in few days.

7  PureMVC Manifold / MultiCore Version / Re: Events on GWT on: June 19, 2009, 03:17:24
I think you should use :

submitCommand.addClickHandler(new ClickHandler(){
  public void onClick(ClickEvent event) {
  // this tells the Mediator to handle the new activity.
  Activity act = new Activity(descriptionInput.getValue(),
       typeInput.getValue(),   dateInput.getValue());

   sendNotification(ApplicationFacade.NEW_ACTIVITY, act);

public final String[] listNotificationInterests() {
    return new String[] { ApplicationFacade.NEW_ACTIVITY

public final void handleNotification(final INotification notification) {
  if (notification.getName().equals(ApplicationFacade.NEW_ACTIVITY)) {
    activity = (Activity) notification.getBody();

8  PureMVC Manifold / MultiCore Version / Re: EmployeeAdm demo for GWT. on: June 19, 2009, 03:06:04
From the PureMVC_Implementation_Idioms_and_Best_Practices.pdf

The responsibilities for the Mediator are primarily handling Events dispatched from the View Component and relevant Notifications sent from the rest of the system.

Since Mediators will also frequently interact with Proxies, it is common for a Mediator to retrieve and maintain a local reference to frequently accessed Proxies in its constructor. This reduces repetitive retrieveProxy calls to obtain the same reference.

9  PureMVC Manifold / MultiCore Version / Re: Changes to observerlist when notifying observers not used. on: June 10, 2009, 05:04:40
It's more safe to iterate on a local copy.
There is a copy because if a mediator is removed during the following code :

for (int i = 0; i < observers.length; i++)

then observers.length become wrong and we could have a null pointer exception during the cast :
IObserver observer = (IObserver)observers;

10  PureMVC Manifold / MultiCore Version / Re: Events on GWT on: May 07, 2009, 08:56:57

I recently coded the port of EmployeeAdmin for GWT.
Is anyone interested by this port and another examples?

Anthony Quinault.
Pages: [1]