diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-11-19 18:57:02 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-11-19 18:57:02 +0000 |
commit | 8622a760ab5c3ded211809a2d8092f4008209397 (patch) | |
tree | 877537f57f140dd5af4b0fed716fdf100f8ecc36 /java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/PolicyBuilder.java | |
parent | 140a3558b476e4318c3c0b310dc061ee852b355f (diff) |
Enhance the PolicyBuilder interface to provide ability to validate and build
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@882246 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/PolicyBuilder.java')
-rw-r--r-- | java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/PolicyBuilder.java | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/PolicyBuilder.java b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/PolicyBuilder.java index dcdc9e06c0..56cf1f5590 100644 --- a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/PolicyBuilder.java +++ b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/PolicyBuilder.java @@ -41,21 +41,33 @@ public interface PolicyBuilder<T> { * Build (and validate) the policy settings on the endpoint * @param endpoint * @param monitor + * @return true if the policy setting is compatible */ - void build(Endpoint endpoint, BuilderContext context); + boolean build(Endpoint endpoint, BuilderContext context); /** * Build (and validate) the policy settings on the endpoint reference * @param endpointReference * @param monitor + * @return true if the policy setting is compatible */ - void build(EndpointReference endpointReference, BuilderContext context); + boolean build(EndpointReference endpointReference, BuilderContext context); /** * Build (and validate) the policy settings on the component implementation * @param component * @param implementation * @param monitor + * @return true if the policy setting is compatible */ - void build(Component component, Implementation implementation, BuilderContext context); + boolean build(Component component, Implementation implementation, BuilderContext context); + + /** + * Build (and validate) the policy settings on the endpoint reference is compatible with the endpoint + * @param endpointReference + * @param endpoint + * @param context + * @return if the policy setting is compatible + */ + boolean build(EndpointReference endpointReference, Endpoint endpoint, BuilderContext context); } |