axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Weinstein <Jason.Weinst...@Sun.COM>
Subject How to turn on debug for this class?
Date Wed, 15 Oct 2008 06:20:47 GMT
Just noticed this
    protected void debugLogDocument(String description, Document doc)

How to turn on debug for this class?
        log = 
LogFactory.getLog(org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.class);



I started with this silly piece of code which may be interesting to 
some. It works too.


public aspect AxisAspect {
    public pointcut withinEmitter() :
        within(org.apache.axis2.wsdl.codegen.emitter.*); // 
AxisServiceBasedMultiLanguageEmitter

    public pointcut createJoinPoint(
        Emitter emitter) :

        withinEmitter() &&       
        execution(protected Document create*())
        && this(emitter);


    Document around(Emitter emitter) :
        createJoinPoint(emitter) {
        System.out.println("create emitter: " + emitter);
        logJoinPoint(thisJoinPoint);
        Document doc = (Document) proceed(emitter);
        logDocument(doc);
        return doc;
    }
...
}

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message