commit | 2057acf23d2ad5696c0e0384d8bead9cc8cf7456 | [log] [tgz] |
---|---|---|
author | Richard S. Hall <rickhall@apache.org> | Thu May 27 13:50:31 2010 +0000 |
committer | Richard S. Hall <rickhall@apache.org> | Thu May 27 13:50:31 2010 +0000 |
tree | 5aa2c23adc80230d0cad9ae56cc75f9e7bf8ea3a | |
parent | 23a242a848644a20a47e31daf11010e7eb1031aa [diff] |
Remove mutable method from Module interface. (FELIX-2035) git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@948838 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/framework/src/main/java/org/apache/felix/framework/BundleImpl.java b/framework/src/main/java/org/apache/felix/framework/BundleImpl.java index 2dfe3cc..599b791 100644 --- a/framework/src/main/java/org/apache/felix/framework/BundleImpl.java +++ b/framework/src/main/java/org/apache/felix/framework/BundleImpl.java
@@ -1086,7 +1086,8 @@ // Set protection domain after adding the module to the bundle, // since this requires that the bundle has a module. - module.setSecurityContext(new BundleProtectionDomain(getFramework(), this)); + ((ModuleImpl) module).setSecurityContext( + new BundleProtectionDomain(getFramework(), this)); SecurityProvider sp = getFramework().getSecurityProvider(); if ((sp != null) && (System.getSecurityManager() != null))
diff --git a/framework/src/main/java/org/apache/felix/framework/resolver/Module.java b/framework/src/main/java/org/apache/felix/framework/resolver/Module.java index 25258e9..b58d71b 100644 --- a/framework/src/main/java/org/apache/felix/framework/resolver/Module.java +++ b/framework/src/main/java/org/apache/felix/framework/resolver/Module.java
@@ -51,8 +51,6 @@ String getId(); List<Wire> getWires(); boolean isResolved(); - // TODO: FELIX3 - Shouldn't have mutable method on Module. - void setSecurityContext(Object securityContext); Object getSecurityContext(); // Content access methods.