KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > backport175 > bytecode > spi > BytecodeProvider


1 /*******************************************************************************************
2  * Copyright (c) Jonas Bonér, Alexandre Vasseur. All rights reserved. *
3  * http://backport175.codehaus.org *
4  * --------------------------------------------------------------------------------------- *
5  * The software in this package is published under the terms of Apache License Version 2.0 *
6  * a copy of which has been included with this distribution in the license.txt file. *
7  *******************************************************************************************/

8 package com.tc.backport175.bytecode.spi;
9
10 /**
11  * Callback interface that all vendors that wants to be able to control which bytecode is read when retrieving the
12  * annotations should implement.
13  *
14  * @author <a HREF="mailto:jboner@codehaus.org">Jonas Bonér</a>
15  */

16 public interface BytecodeProvider {
17
18     /**
19      * Returns the bytecode for a specific class.
20      *
21      * @param className the fully qualified name of the class
22      * @param loader the class loader that has loaded the class
23      * @return the bytecode
24      * @throws Exception upon failure
25      */

26     byte[] getBytecode(String JavaDoc className, ClassLoader JavaDoc loader) throws Exception JavaDoc;
27 }
28
Popular Tags