01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright
03: * notice. All rights reserved.
04: */
05: package com.tctest;
06:
07: import com.tc.exception.ImplementMe;
08: import com.tc.object.config.ConfigVisitor;
09: import com.tc.object.config.DSOClientConfigHelper;
10: import com.tc.object.config.TransparencyClassSpec;
11: import com.tc.simulator.app.ApplicationConfig;
12: import com.tc.simulator.listener.ListenerProvider;
13: import com.tctest.runner.AbstractTransparentApp;
14:
15: public class InterfaceTestApp extends AbstractTransparentApp {
16:
17: public InterfaceTestApp(String appId, ApplicationConfig cfg,
18: ListenerProvider listenerProvider) {
19: super (appId, cfg, listenerProvider);
20: }
21:
22: public void run() {
23: new InterfaceTestAppInterface() {
24:
25: public void testMethod(String s, int i, FooObject1 foo) {
26: throw new ImplementMe();
27:
28: }
29:
30: };
31: }
32:
33: public static void visitL1DSOConfig(ConfigVisitor visitor,
34: DSOClientConfigHelper config) {
35: String testClass = InterfaceTestAppInterface.class.getName();
36: TransparencyClassSpec spec = config.getOrCreateSpec(testClass);
37:
38: String methodExpression = "* " + testClass + "*.*(..)";
39: config.addWriteAutolock(methodExpression);
40: spec.addRoot("myArrayTestRoot", "myArrayTestRoot");
41:
42: }
43: }
|