01: /**************************************************************************************
02: * Copyright (c) Jonas BonŽr, Alexandre Vasseur. All rights reserved. *
03: * http://aspectwerkz.codehaus.org *
04: * ---------------------------------------------------------------------------------- *
05: * The software in this package is published under the terms of the LGPL license *
06: * a copy of which has been included with this distribution in the license.txt file. *
07: **************************************************************************************/package org.codehaus.aspectwerkz.transform;
08:
09: /**
10: * Interface that all the weaving strategy implementations must implement.
11: *
12: * @author <a href="mailto:jboner@codehaus.org">Jonas BonŽr </a>
13: */
14: public interface WeavingStrategy {
15:
16: /**
17: * @param className
18: * @param context
19: */
20: public abstract void transform(final String className,
21: final Context context);
22:
23: /**
24: * Creates a new transformation context.
25: *
26: * @param name
27: * @param bytecode
28: * @param loader
29: * @return
30: */
31: public abstract Context newContext(final String name,
32: final byte[] bytecode, final ClassLoader loader);
33: }
|