mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-09-13 15:45:38 +02:00
5a07dcee3a
percflow aspects compiled from jars share one instance for all entry points
23 lines
611 B
Java
23 lines
611 B
Java
|
|
public class PerCFlowCompileFromJarTest {
|
|
|
|
public static void main(String[] args) throws Exception {
|
|
PerCFlowTestHelper c1 = new PerCFlowTestHelper();
|
|
PerCFlowTestHelper c2 = new PerCFlowTestHelper();
|
|
PerCFlowTestHelper c3 = new PerCFlowTestHelper();
|
|
c1.startNewPerCFlow();
|
|
c2.startNewPerCFlow();
|
|
c3.startNewPerCFlow();
|
|
}
|
|
}
|
|
|
|
class PerCFlowTestHelper {
|
|
public void startNewPerCFlow()throws Exception{
|
|
//do nothing
|
|
}
|
|
}
|
|
|
|
aspect MyTestPerCFlowEntryPoint extends PerCFlowCompileFromJar {
|
|
protected pointcut entryPoint():
|
|
execution( public void PerCFlowTestHelper.startNewPerCFlow() );
|
|
} |