protected void addInstrumentation(final BundleContext context) { // super.addExportedBundleClass(this.getExportedBundle(context, "org.terracotta.modules.map"), "com.tc.object.applicator.NonPartialHashtableApplicator"); // TransparencyClassSpec spec = configHelper.getOrCreateSpec("com.betting.api.terracotta.NonPartialHashtable", "com.tc.object.applicator.NonPartialHashtableApplicator"); // TransparencyClassSpec tableSpec = new TransparencyClassSpecImpl("java.util.Hashtable", null, "com.tc.object.applicator.NonPartialHashtableApplicator"); TransparencyClassSpec spec = configHelper.getOrCreateSpec("org.terracotta.maps.NPHashtable"); TransparencyClassSpec tableSpec = new TransparencyClassSpecImpl("gnu.trove.THashMap", null, "com.tc.object.applicator.HashMapApplicator"); spec.moveToLogical(tableSpec); spec = configHelper.getOrCreateSpec("org.terracotta.maps.NPHashMap"); tableSpec = new TransparencyClassSpecImpl("gnu.trove.THashMap", null, "com.tc.object.applicator.HashMapApplicator"); spec.moveToLogical(tableSpec); spec = configHelper.getOrCreateSpec("org.terracotta.maps.NPNCHashMap"); tableSpec = new TransparencyClassSpecImpl("gnu.trove.THashMap", null, "com.tc.object.applicator.HashMapApplicator"); spec.moveToLogical(tableSpec); spec = configHelper.getOrCreateSpec("org.terracotta.maps.NPNCHashtable"); tableSpec = new TransparencyClassSpecImpl("gnu.trove.THashMap", null, "com.tc.object.applicator.HashMapApplicator"); spec.moveToLogical(tableSpec); } }
protected final void addInstrumentation(final BundleContext context) { super.addInstrumentation(context); configHelper.getOrCreateSpec("org.terracotta.modules.wan.collections.WANConcurrentMap"); TransparencyClassSpec spec = configHelper.getOrCreateSpec(WAN_DSO_CLASSNAME); TransparencyClassSpec csmspec = new TransparencyClassSpecImpl("java.util.HashMap", null, WAN_DSO_APPLICATOR_CLASSNAME); spec.moveToLogical(csmspec); spec.setUseNonDefaultConstructor(true); spec.setCallConstructorOnLoad(true); addExportedBundleClass(context.getBundle(), WAN_DSO_APPLICATOR_CLASSNAME); } }
protected void addInstrumentation(final BundleContext context) { TransparencyClassSpec spec = configHelper.getOrCreateSpec("org.terracotta.searchable.SearchableMapImpl","com.tc.object.applicator.PartialHashMapApplicator"); TransparencyClassSpec tableSpec = new TransparencyClassSpecImpl("gnu.trove.THashMap", null, "com.tc.object.applicator.PartialHashMapApplicator"); spec.moveToLogical(tableSpec); spec.moveToLogical(tableSpec);