01: package org.terracotta.modules.websphere_6_1;
02:
03: import org.osgi.framework.BundleContext;
04: import org.terracotta.modules.configuration.TerracottaConfiguratorModule;
05:
06: public final class WebsphereTerracottaConfigurator extends
07: TerracottaConfiguratorModule {
08:
09: protected final void addInstrumentation(final BundleContext context) {
10: // Without this exclude, WAS 6.1.0.0 will fail to start with StackOverflowError (CDV-429)
11: configHelper
12: .addPermanentExcludePattern("org.eclipse.osgi.framework.internal.core.FrameworkSecurityManager");
13:
14: configHelper.addCustomAdapter(
15: "com.ibm.ws.classloader.JarClassLoader",
16: new JarClassLoaderAdapter());
17: configHelper.addCustomAdapter(
18: "com.ibm.ws.classloader.ClassGraph",
19: new ClassGraphAdapter());
20: configHelper.addCustomAdapter(
21: "com.ibm.ws.webcontainer.filter.WebAppFilterManager",
22: new WebAppFilterManagerClassAdapter());
23: configHelper.addCustomAdapter(
24: "com.ibm.ws.webcontainer.facade.ServletContextFacade",
25: new ServletContextFacadeAdapater());
26: configHelper.addCustomAdapter(
27: "com.ibm.ws.webcontainer.httpsession.SessionContext",
28: new SessionContextAdapter());
29: }
30:
31: }
|