diff options
Diffstat (limited to 'bundles/org.eclipse.osgi.tests/bundles_src/storage.hooks.a/org/eclipse/osgi/tests/hooks/framework/storage/a/TestHookConfigurator.java')
-rw-r--r-- | bundles/org.eclipse.osgi.tests/bundles_src/storage.hooks.a/org/eclipse/osgi/tests/hooks/framework/storage/a/TestHookConfigurator.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/bundles/org.eclipse.osgi.tests/bundles_src/storage.hooks.a/org/eclipse/osgi/tests/hooks/framework/storage/a/TestHookConfigurator.java b/bundles/org.eclipse.osgi.tests/bundles_src/storage.hooks.a/org/eclipse/osgi/tests/hooks/framework/storage/a/TestHookConfigurator.java index 519daefe6..2714ad0d5 100644 --- a/bundles/org.eclipse.osgi.tests/bundles_src/storage.hooks.a/org/eclipse/osgi/tests/hooks/framework/storage/a/TestHookConfigurator.java +++ b/bundles/org.eclipse.osgi.tests/bundles_src/storage.hooks.a/org/eclipse/osgi/tests/hooks/framework/storage/a/TestHookConfigurator.java @@ -56,11 +56,17 @@ public class TestHookConfigurator implements HookConfigurator { @Override public TestStorageHook createStorageHook(Generation generation) { - return new TestStorageHook(generation, TestStorageHookFactory.class); + createStorageHookCalled = true; + Class<?> factoryClass = TestStorageHookFactory.class; + if (invalidFactoryClass) + factoryClass = StorageHookFactory.class; + return new TestStorageHook(generation, factoryClass); } } + public static volatile boolean createStorageHookCalled; public static volatile boolean invalid; + public static volatile boolean invalidFactoryClass; public static volatile boolean validateCalled; public void addHooks(HookRegistry hookRegistry) { |