Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpelder2008-09-09 14:09:15 -0400
committerpelder2008-09-09 14:09:15 -0400
commit69b4723e9482c8086419f1d80dce54a0146ce64f (patch)
tree4d37bda401137af056de0f73e3bece1616438c0e
parent2587536a7c919a0b6c56e593aad781b13cd4012b (diff)
downloadorg.eclipse.jet-69b4723e9482c8086419f1d80dce54a0146ce64f.tar.gz
org.eclipse.jet-69b4723e9482c8086419f1d80dce54a0146ce64f.tar.xz
org.eclipse.jet-69b4723e9482c8086419f1d80dce54a0146ce64f.zip
[195397] Custom XPath functions defined in a JET transformation are not resolved if the transformation is dynamically loaded.R0_9_1
-rw-r--r--plugins/org.eclipse.jet/src/org/eclipse/jet/internal/runtime/JETBundleInstaller.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/runtime/JETBundleInstaller.java b/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/runtime/JETBundleInstaller.java
index 65c179f..cdfcb99 100644
--- a/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/runtime/JETBundleInstaller.java
+++ b/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/runtime/JETBundleInstaller.java
@@ -20,6 +20,7 @@ package org.eclipse.jet.internal.runtime;
import java.net.URL;
import org.eclipse.jet.internal.InternalJET2Platform;
+import org.eclipse.jet.internal.InternalJET2Platform.IMethodTimer;
import org.osgi.framework.Bundle;
import org.osgi.framework.BundleContext;
import org.osgi.framework.BundleException;
@@ -49,7 +50,11 @@ public class JETBundleInstaller
*/
public void startup(BundleContext initBundleContext)
{
+ IMethodTimer timer = InternalJET2Platform.getStartupMethodTimer(getClass(), "startup()"); //$NON-NLS-1$
+
this.bundleContext = initBundleContext;
+
+ timer.done();
}
/**
@@ -58,7 +63,11 @@ public class JETBundleInstaller
*/
public void shutdown()
{
+ IMethodTimer timer = InternalJET2Platform.getStartupMethodTimer(getClass(), "shutdown()"); //$NON-NLS-1$
+
this.bundleContext = null;
+
+ timer.done();
}
/**
@@ -75,6 +84,8 @@ public class JETBundleInstaller
// to refresh extensions in the loaded bundle.
// OSGi asynchronously broadcasts registry updates, but this is not prompt enough,
// and there is no mechanism for waiting for these
+ // Calling getResource ensures that the registry information actually gets loaded...
+ bundle.getResource("plugin.xml"); //$NON-NLS-1$
InternalJET2Platform.getDefault().getXPathFunctionsManager().forceRefresh(bundle.getSymbolicName());
InternalJET2Platform.getDefault().getTagLibManager().forceRefresh(bundle.getSymbolicName());

Back to the top