0 Replies Latest reply on May 30, 2004 12:54 PM by Jens Schumann

    Pre compile - AspectDefinition clazz.newInstance()

    Jens Schumann Newbie

      In the past I have been using load-time byte code manipulation and tried to use AOP pre compilation with DR4. However it seems that the current AOP implementation design requires a newInstance() of advice classes during byte code enhancement (AspectDefinition#createAspect).

      This behaviour is rather optimal since my advice classes initialize themself in a static{} block and fail as soon as the runtime environment is not available (such as an MBean Server).

      Although switching to lazy initialization would be an option I would love to see a way to use pre compilation which doesn't need newInstance() of advice classes. Do you think this is possible?