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 / Standard Version / overload in facade and Notification class on: January 04, 2009, 07:39:47
In java you can't use default parameter so i think it's better to overload some pureMVC methods

in Notification class

:
public Notification( String name, Object body, String type )
{
this.name = name;
this.body = body;
this.type = type;
}

public Notification(String notificationName, Object object) {
this(notificationName, object, null);
}

public Notification(String notificationName) {
this(notificationName, null);
}


in facade classe

:

public void sendNotification( String notificationName, Object body )
{
notifyObservers( new Notification( notificationName, body, null ) );
}


public void sendNotification( String notificationName )
{
notifyObservers( new Notification( notificationName, null ) );
}

so it is quite more usable


i still have problems undestanding how to link views and mediators in java because i can't use bubbled events so a lot fo boring code is required

i'm studing a better way to handle notifications in mediator because we can't use String with switch statement, probably the best way is tu use enumeration but we can't extend it later so i don't know if it is a good solution, what do you think about ?

Teo


2  PureMVC Manifold / Standard Version / model vs proxies on: January 02, 2009, 07:50:39
Hi everyone, why in java version of pureMVC is introduced model class which can store proxies?

when have i to use proxies and when model ?

another thing, can anyone show me a typical package structure for a socket java client ?

thanks
Teo
3  Announcements and General Discussion / General Discussion / MVP and pureMVC differences on: November 06, 2008, 11:16:20
Hi everybody,
discussing with a friend we were talking about pureMVC. I'm using pureMVC since the le beginning of the year and he studied something about MVP smalltalk pattern. MVP pattern is used for .net application too so i decided to discover more about it

As every time i have to start with a new thing open wikipedia and i read this
http://en.wikipedia.org/wiki/Model_View_Presenter

so i thought "ok, Presenter is a new layer between controller and view... so it is the pureMVC mediator"...
i think i'm wrong because I'm reading this one http://www.wildcrest.com/Potel/Portfolio/mvp.pdf and presenter is described as controller

so please someone can explain me which are differences between the 2 patterns and why some one think MVP is so better then MVC ?


thanks
Teo


Pages: [1]