Example usage for org.aspectj.weaver.loadtime DefaultWeavingContext DefaultWeavingContext

List of usage examples for org.aspectj.weaver.loadtime DefaultWeavingContext DefaultWeavingContext

Introduction

In this page you can find the example usage for org.aspectj.weaver.loadtime DefaultWeavingContext DefaultWeavingContext.

Prototype

public DefaultWeavingContext(ClassLoader loader) 

Source Link

Document

Construct a new WeavingContext to use the specified ClassLoader This is the constructor which should be used.

Usage

From source file:info.rubico.mock4aj.weavers.aspectj.DynamicRuntimeWeavingAdaptor.java

License:Open Source License

public synchronized void initialize() {
    if (initialized) {
        return;//from w  w  w.j a  v a  2 s  .c  o m
    }

    initMessageHandler();
    weavingContext = new DefaultWeavingContext(classLoader);
    generatedClassHandler = new SimpleGeneratedClassHandler(classLoader);
    initWorld();
    initWeaver();

    enable();
    initialized = true;

    if (trace.isTraceEnabled()) {
        trace.exit("initialize", isEnabled());
    }
}