how to override getInstance() method of qooxdoo

View: New views
3 Messages — Rating Filter:   Alert me  

how to override getInstance() method of qooxdoo

by prassee :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all, I have my qooxdoo classes marked as Singleton by setting type : "singleton" in my qooxdoo class there by i can invoke the class instance by .getInstace(). By now i want to override the getInstanace() method. Is it possible...

Re: how to override getInstance() method of qooxdoo

by Jean-Baptiste BRIAUD -- Novlog :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I'm not sure about qooxdoo OO layer, but just on the principle, it should not be allowed.
In fact, how would you overrride a static member ? You need instance to override something.
Override is only possible on instance members.

That's a known problem with Singleton design pattern. Use Factory instead.

On Nov 2, 2009, at 09:40 , prassee wrote:

Hi all, I have my qooxdoo classes marked as Singleton by setting type : "singleton" in my qooxdoo class there by i can invoke the class instance by .getInstace(). By now i want to override the getInstanace() method. Is it possible...

View this message in context: how to override getInstance() method of qooxdoo
Sent from the qooxdoo-devel mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Re: how to override getInstance() method of qooxdoo

by thron7-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



prassee wrote:
Hi all, I have my qooxdoo classes marked as Singleton by setting type : "singleton" in my qooxdoo class there by i can invoke the class instance by .getInstace(). By now i want to override the getInstanace() method. Is it possible...

Not easily. What are you trying to achieve?

T.


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel