« Return to Thread: making application scope public static

Re: making application scope public static

by Mondain :: Rate this Message:

Reply to Author | View in Thread

I thought that I had recently done something like this, have you looked at the trunk version?

Paul

On Tue, Jul 7, 2009 at 7:29 AM, Aljosa Mohorovic <aljosa.mohorovic@...> wrote:
any comments on making app scope public and static so i could easily
access it in different parts of application?

sample code:
----------------------------------------------------------------------------------------------------
public class Application extends MultiThreadedApplicationAdapter {
       public static IScope appScope;

       @Override
       public boolean appStart(IScope app) {
               appScope = app;
----------------------------------------------------------------------------------------------------

Aljosa Mohorovic

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org



--
http://gregoire.org/
http://code.google.com/p/red5/
http://code.google.com/p/blue5/

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

 « Return to Thread: making application scope public static