01: /*******************************************************************************************
02: * Copyright (c) Jonas Bonér, Alexandre Vasseur. All rights reserved. *
03: * http://backport175.codehaus.org *
04: * --------------------------------------------------------------------------------------- *
05: * The software in this package is published under the terms of Apache License Version 2.0 *
06: * a copy of which has been included with this distribution in the license.txt file. *
07: *******************************************************************************************/package com.tc.backport175.bytecode.spi;
08:
09: /**
10: * Callback interface that all vendors that wants to be able to control which bytecode is read when retrieving the
11: * annotations should implement.
12: *
13: * @author <a href="mailto:jboner@codehaus.org">Jonas Bonér</a>
14: */
15: public interface BytecodeProvider {
16:
17: /**
18: * Returns the bytecode for a specific class.
19: *
20: * @param className the fully qualified name of the class
21: * @param loader the class loader that has loaded the class
22: * @return the bytecode
23: * @throws Exception upon failure
24: */
25: byte[] getBytecode(String className, ClassLoader loader)
26: throws Exception;
27: }
|