From 9fbe040fb8c433369b0dfb67fd298037ea53804b Mon Sep 17 00:00:00 2001 From: slaws Date: Thu, 16 Jun 2011 12:13:44 +0000 Subject: 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 --- .../policy/identity/SecurityIdentityImplementationPolicyProvider.java | 4 ++-- .../security/jaas/JaasAuthenticationImplementationPolicyProvider.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sca-java-2.x/trunk/modules/policy-security/src') 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 policySets = component.getPolicySets(); + List 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 policySets = component.getPolicySets(); + List policySets = implementation.getPolicySets(); for (PolicySet ps : policySets) { for (Object p : ps.getPolicies()) { if (JaasAuthenticationPolicy.class.isInstance(p)) { -- cgit v1.2.3