/**************************************************************************************
 * Copyright (c) Jonas Bonér, Alexandre Vasseur. All rights reserved.                 *
 * http://aspectwerkz.codehaus.org                                                    *
 * ---------------------------------------------------------------------------------- *
 * The software in this package is published under the terms of the QPL license       *
 * a copy of which has been included with this distribution in the license.txt file.  *
 **************************************************************************************/
package examples.attribdef.logging;

/**
 * @author <a href="mailto:jboner@codehaus.org">Jonas Bonér</a>
 */
public class Target {

    private int m_counter1;
    private int m_counter2;

    public int getCounter() {
        return m_counter1;
    }

    public void increment() {
        m_counter2 = m_counter2 + 1;
    }

    public static void toLog1() {
        new Target().toLog2("parameter");
    }

    private void toLog2(java.lang.String arg) {
        new Target().toLog3();
    }

    private String toLog3() {
        return "result";
    }

    public static void main(String[] args) {
        Target.toLog1();
        Target target = new Target();
        target.increment();
        target.getCounter();
    }
}
