Package org.apache.tuscany.sca.policy

Examples of org.apache.tuscany.sca.policy.PolicyExpression


            for (Object p : ps.getPolicies()) {
                if (policyType.isInstance(p)) {
                    policies.add(ps);
                }
                if (p instanceof PolicyExpression) {
                    PolicyExpression exp = (PolicyExpression)p;
                    if (policyType.isInstance(exp.getPolicy())) {
                        policies.add(ps);
                    }
                }
            }
        }
View Full Code Here


            for (Object p : ps.getPolicies()) {
                if (policyType.isInstance(p)) {
                    return ps;
                }
                if (p instanceof PolicyExpression) {
                    PolicyExpression exp = (PolicyExpression)p;
                    if (policyType.isInstance(exp.getPolicy())) {
                        return ps;
                    }
                }
            }
        }
View Full Code Here

                        org.apache.neethi.Policy wsPolicy = PolicyEngine.getPolicy(policyElement);
                        policySet.getPolicies().add(wsPolicy);
                      } */else {
                        Object extension = extensionProcessor.read(reader, context);
                        if (extension != null) {
                            PolicyExpression exp = policyFactory.createPolicyExpression();
                            exp.setName(name);
                            exp.setPolicy(extension);
                            // check that all the policies in the policy set are
                            // expressed in the same language. Compare against the
                            // first expression we added
                            if ((policySet.getPolicies().size() > 0) &&
                                (!policySet.getPolicies().get(0).getName().getNamespaceURI().equals(name.getNamespaceURI()))) {
View Full Code Here

                                    //" in policyset - " + policySet);
                                }
                            } else {
                                Object extension = extensionProcessor.read(reader, context);
                                if (extension != null && qualifier != null) {
                                    PolicyExpression exp = policyFactory.createPolicyExpression();
                                    exp.setName(name);
                                    exp.setPolicy(extension);
                                    qualifier.getPolicies().add(exp);
                                }
                            }
                            break;
                        }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.policy.PolicyExpression

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.