tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdan...@apache.org
Subject svn commit: r982129 - in /tuscany/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/policy: PolicySet.java impl/PolicySetImpl.java
Date Wed, 04 Aug 2010 06:12:29 GMT
Author: bdaniel
Date: Wed Aug  4 06:12:29 2010
New Revision: 982129

URL: http://svn.apache.org/viewvc?rev=982129&view=rev
Log:
Add a boolean to PolicySet to determine if it has been attached via external attachment

Modified:
    tuscany/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/policy/PolicySet.java
    tuscany/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/policy/impl/PolicySetImpl.java

Modified: tuscany/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/policy/PolicySet.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/policy/PolicySet.java?rev=982129&r1=982128&r2=982129&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/policy/PolicySet.java
(original)
+++ tuscany/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/policy/PolicySet.java
Wed Aug  4 06:12:29 2010
@@ -144,4 +144,16 @@ public interface PolicySet {
      */
     void setAppliesToXPathExpression(XPathExpression xpathExpression);
 
+    /**
+     * Returns true if this PolicySet was attached via external attachment
+     * For unattached and directly attached PolicySets, returns false
+     * @return
+     */
+    boolean isExternalAttachment();
+    
+    /**
+     * Sets whether this PolicySet has been attached via external attachment or not
+     * @param value
+     */
+    void setIsExternalAttachment(boolean value);
 }

Modified: tuscany/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/policy/impl/PolicySetImpl.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/policy/impl/PolicySetImpl.java?rev=982129&r1=982128&r2=982129&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/policy/impl/PolicySetImpl.java
(original)
+++ tuscany/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/policy/impl/PolicySetImpl.java
Wed Aug  4 06:12:29 2010
@@ -48,6 +48,7 @@ public class PolicySetImpl implements Po
 
     private List<IntentMap> intentMaps = new ArrayList<IntentMap>();
     private List<PolicyExpression> policies = new ArrayList<PolicyExpression>();
+	private boolean isExternalAttachment;
 
     public QName getName() {
         return name;
@@ -142,4 +143,12 @@ public class PolicySetImpl implements Po
         return true;
     }
 
+	public boolean isExternalAttachment() {
+		return this.isExternalAttachment;
+	}
+
+	public void setIsExternalAttachment(boolean value) {
+		this.isExternalAttachment = value;		
+	}
+
 }



Mime
View raw message