making application scope public static

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

making application scope public static

by Aljosa Mohorovic-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

Re: making application scope public static

by Andy Shaules :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Works fine for me.


----- Original Message -----
From: "Aljosa Mohorovic" <aljosa.mohorovic@...>
To: <red5@...>
Sent: Tuesday, July 07, 2009 7:29 AM
Subject: [Red5] making application scope public static


> 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
>


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

Re: making application scope public static

by Mondain :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

Re: making application scope public static

by Aljosa Mohorovic-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, Jul 7, 2009 at 6:08 PM, Mondain<mondain@...> wrote:
> I thought that I had recently done something like this, have you looked at
> the trunk version?
> Paul

i'm using 0.8 and will be using it until 0.9 release.
i've tried tracking trunk before but i've got burned few times.
combination of bugs and lack of documentation can introduce unexpected
behavior, especially when code compiles but is conceptually wrong.
thanks for suggestion.

Aljosa

p.s.
i'm not trying to raise issues regarding lack of documentation, i
perfectly understand that there is general agreement that there are
more important things to do before documentation so please don't take
my comment the wrong way.

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