01: /*
02: * All content copyright (c) 2003-2007 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package org.terracotta.modules.test;
05:
06: import org.osgi.framework.Bundle;
07: import org.osgi.framework.BundleContext;
08: import org.terracotta.modules.configuration.TerracottaConfiguratorModule;
09:
10: /**
11: * This exists to test exported class feature
12: * See {@link com.tctest.BundleClassExportTest}
13: */
14: public class TestModuleCommonConfigurator extends
15: TerracottaConfiguratorModule {
16: protected void addInstrumentation(final BundleContext context) {
17: Bundle this Bundle = getExportedBundle(context,
18: getExportedBundleName());
19: addExportedBundleClass(this Bundle,
20: "org.terracotta.modules.test.DummyClass");
21: }
22:
23: protected String getExportedBundleName() {
24: return "org.terracotta.modules.modules-common";
25: }
26: }
|