Package test.xmldef.memusage

Source Code of test.xmldef.memusage.HelloImpl

/**************************************************************************************
* 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 test.xmldef.memusage;

import org.apache.bcel.util.BCELifier;
import org.apache.bcel.util.ClassLoaderRepository;

/**
* Helper class for BCELifier
* MemUsageTest create such classes on the fly
*/
public class HelloImpl implements Hello {

    private byte[] buffer = new byte[1000];

    private static byte[] sbuffer = new byte[1000];

    public String sayHello0() {
        return "sayHello0";
    }

    public static void main(String args[]) throws Exception {
        BCELifier bc = new BCELifier((new ClassLoaderRepository(HelloImpl.class.getClassLoader())).loadClass(HelloImpl.class.getName()), System.out);
        bc.start();
    }
}
TOP

Related Classes of test.xmldef.memusage.HelloImpl

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.