« Return to Thread: making application scope public static

making application scope public static

by Aljosa Mohorovic-3 :: Rate this Message:

Reply to Author | View in Thread

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

 « Return to Thread: making application scope public static