Active Flash / Flex / ActionScript 3 AOP Project?

I saw the Loom project, but are there any alternatives that are more mature (and are being actively developed)? I am looking for something that would allow the load time of weaving points into existing binary code at runtime with AVM2 runtime.

Is any work done in this area?

+3
source share
3 answers

I know I was a bit late for the party here, but I just put together a really simple AOP project to integrate with Parsley.

It allows you to assign meta tags to interceptors, for example:

    <parsley:ContextBuilder>
        <parsley:FlexConfig type="{ParsleyConfig}" />
        <tag:AspectSupport>
            <tag:MetatagInterceptorDefinition metatag="Log" interceptor="{new TracingInterceptor()}" />
        </tag:AspectSupport>            
    </parsley:ContextBuilder>

Parsley, Log, proxied:

    [Log]
    public function add(a:int,b:int):int
    {
        return a + b;
    }

, , ,

+3

flemit/floxy ( asmock), AS3Commons Bytecode, (flemit/floxy ).

AS3Commons Bytecode Loom , API, - .

+2

Source: https://habr.com/ru/post/1734153/


All Articles