diff options
author | Thomas Watson | 2013-04-23 19:47:19 +0000 |
---|---|---|
committer | Thomas Watson | 2013-04-23 19:47:19 +0000 |
commit | 8e458d8efb0eb81367ae13ffad68256189800e9d (patch) | |
tree | 7692c3ab779d4083c30b9b1f97dc40e9112aef44 /bundles | |
parent | c14d7ac01db55960a551e787c7954447e73a7053 (diff) | |
download | rt.equinox.framework-8e458d8efb0eb81367ae13ffad68256189800e9d.tar.gz rt.equinox.framework-8e458d8efb0eb81367ae13ffad68256189800e9d.tar.xz rt.equinox.framework-8e458d8efb0eb81367ae13ffad68256189800e9d.zip |
Allow adapting to ProtectionDomain for testing
Diffstat (limited to 'bundles')
-rw-r--r-- | bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/EquinoxBundle.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/EquinoxBundle.java b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/EquinoxBundle.java index 3fb230346..b7d6da370 100644 --- a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/EquinoxBundle.java +++ b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/EquinoxBundle.java @@ -745,6 +745,10 @@ public class EquinoxBundle implements Bundle, BundleReference { if (Module.class.equals(adapterType)) { return (A) module; } + if (ProtectionDomain.class.equals(adapterType)) { + Generation current = (Generation) module.getCurrentRevision().getRevisionInfo(); + return (A) current.getDomain(); + } return null; } |