summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/builder/src/main
diff options
context:
space:
mode:
authorlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2010-02-25 04:27:24 +0000
committerlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2010-02-25 04:27:24 +0000
commitbb20fe9ea3c3bff631124b17d895aba2189376b3 (patch)
tree2ae4d9b955ba4845ac418f623b09ab7d3596622d /sca-java-2.x/trunk/modules/builder/src/main
parent51916f0b98a93ad08a27d322b55481cba89db252 (diff)
Minor cleanup...
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@916117 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/builder/src/main')
-rw-r--r--sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/IntentValidator.java28
1 files changed, 7 insertions, 21 deletions
diff --git a/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/IntentValidator.java b/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/IntentValidator.java
index e50a7504e2..b2f7a4ceed 100644
--- a/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/IntentValidator.java
+++ b/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/IntentValidator.java
@@ -36,27 +36,22 @@ import org.apache.tuscany.sca.policy.Intent;
import org.apache.tuscany.sca.policy.PolicySubject;
/**
- *
+ * Intent Validator
*/
public class IntentValidator implements PolicyBuilder {
/**
- * @param registry
+ * Defaut constructor
+ * @param registry Extension Registry
*/
public IntentValidator(ExtensionPointRegistry registry) {
super();
}
- /* (non-Javadoc)
- * @see org.apache.tuscany.sca.assembly.builder.PolicyBuilder#build(org.apache.tuscany.sca.assembly.Endpoint, org.apache.tuscany.sca.assembly.builder.BuilderContext)
- */
public boolean build(Endpoint endpoint, BuilderContext context) {
return checkMutualExclusion(endpoint, context);
}
- /* (non-Javadoc)
- * @see org.apache.tuscany.sca.assembly.builder.PolicyBuilder#build(org.apache.tuscany.sca.assembly.EndpointReference, org.apache.tuscany.sca.assembly.builder.BuilderContext)
- */
public boolean build(EndpointReference endpointReference, BuilderContext context) {
boolean ok = checkMutualExclusion(endpointReference, context);
if(!ok) {
@@ -73,23 +68,19 @@ public class IntentValidator implements PolicyBuilder {
return ok;
}
- /* (non-Javadoc)
- * @see org.apache.tuscany.sca.assembly.builder.PolicyBuilder#build(org.apache.tuscany.sca.assembly.Component, org.apache.tuscany.sca.assembly.Implementation, org.apache.tuscany.sca.assembly.builder.BuilderContext)
- */
public boolean build(Component component, Implementation implementation, BuilderContext context) {
return true;
}
+
+ public boolean build(EndpointReference endpointReference, Endpoint endpoint, BuilderContext context) {
+ return true;
+ }
- /* (non-Javadoc)
- * @see org.apache.tuscany.sca.assembly.builder.PolicyBuilder#getPolicyType()
- */
public QName getPolicyType() {
- // TODO Auto-generated method stub
return null;
}
public List<QName> getSupportedBindings() {
- // TODO Auto-generated method stub
return null;
}
@@ -145,9 +136,4 @@ public class IntentValidator implements PolicyBuilder {
}
return false;
}
-
- public boolean build(EndpointReference endpointReference, Endpoint endpoint, BuilderContext context) {
- return true;
- }
-
}