summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/policy-security/src
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2011-06-16 12:13:44 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2011-06-16 12:13:44 +0000
commit9fbe040fb8c433369b0dfb67fd298037ea53804b (patch)
treeb988990b2a8186fc2692db9d0818178bb38b1a70 /sca-java-2.x/trunk/modules/policy-security/src
parenta37832b899749c9378ba556a91a11554b65722ad (diff)
TUSCANY-3876 - minimum changes to turn of implementation model sharing and represent implementation policy correctly.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1136391 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/policy-security/src')
-rw-r--r--sca-java-2.x/trunk/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/identity/SecurityIdentityImplementationPolicyProvider.java4
-rw-r--r--sca-java-2.x/trunk/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/security/jaas/JaasAuthenticationImplementationPolicyProvider.java4
2 files changed, 4 insertions, 4 deletions
diff --git a/sca-java-2.x/trunk/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/identity/SecurityIdentityImplementationPolicyProvider.java b/sca-java-2.x/trunk/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/identity/SecurityIdentityImplementationPolicyProvider.java
index ebbc2ba5ff..04d7152a49 100644
--- a/sca-java-2.x/trunk/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/identity/SecurityIdentityImplementationPolicyProvider.java
+++ b/sca-java-2.x/trunk/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/identity/SecurityIdentityImplementationPolicyProvider.java
@@ -36,7 +36,7 @@ public class SecurityIdentityImplementationPolicyProvider extends BasePolicyProv
private Implementation implementation;
public SecurityIdentityImplementationPolicyProvider(RuntimeComponent component) {
- super(SecurityIdentityPolicy.class, component);
+ super(SecurityIdentityPolicy.class, component.getImplementation());
this.component = component;
this.implementation = component.getImplementation();
}
@@ -61,7 +61,7 @@ public class SecurityIdentityImplementationPolicyProvider extends BasePolicyProv
}
*/
- List<PolicySet> policySets = component.getPolicySets();
+ List<PolicySet> policySets = implementation.getPolicySets();
for (PolicySet ps : policySets) {
for (Object p : ps.getPolicies()) {
if (SecurityIdentityPolicy.class.isInstance(p)) {
diff --git a/sca-java-2.x/trunk/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/security/jaas/JaasAuthenticationImplementationPolicyProvider.java b/sca-java-2.x/trunk/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/security/jaas/JaasAuthenticationImplementationPolicyProvider.java
index 6425ae7fca..20a064574d 100644
--- a/sca-java-2.x/trunk/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/security/jaas/JaasAuthenticationImplementationPolicyProvider.java
+++ b/sca-java-2.x/trunk/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/security/jaas/JaasAuthenticationImplementationPolicyProvider.java
@@ -38,7 +38,7 @@ public class JaasAuthenticationImplementationPolicyProvider extends BasePolicyPr
private Implementation implementation;
public JaasAuthenticationImplementationPolicyProvider(RuntimeComponent component) {
- super(JaasAuthenticationPolicy.class, component);
+ super(JaasAuthenticationPolicy.class, component.getImplementation());
this.component = component;
this.implementation = component.getImplementation();
}
@@ -63,7 +63,7 @@ public class JaasAuthenticationImplementationPolicyProvider extends BasePolicyPr
}
*/
- List<PolicySet> policySets = component.getPolicySets();
+ List<PolicySet> policySets = implementation.getPolicySets();
for (PolicySet ps : policySets) {
for (Object p : ps.getPolicies()) {
if (JaasAuthenticationPolicy.class.isInstance(p)) {