diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2010-08-29 18:32:20 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2010-08-29 18:32:20 +0000 |
commit | e6c733c4d9d9116216c0a0105b770267918a12f9 (patch) | |
tree | 4bab614eec77bcfffa469b7165dd6c1dddb2ec99 /sandbox/sebastien/java/embed/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/AsyncInvocation.java | |
parent | 6dea67b43eb0b18d1c603ff3df6a4702a4f1e847 (diff) |
Sandbox to experiment with different ways to embed the runtime.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@990620 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sandbox/sebastien/java/embed/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/AsyncInvocation.java')
-rw-r--r-- | sandbox/sebastien/java/embed/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/AsyncInvocation.java | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/sandbox/sebastien/java/embed/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/AsyncInvocation.java b/sandbox/sebastien/java/embed/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/AsyncInvocation.java new file mode 100644 index 0000000000..c6a4147afd --- /dev/null +++ b/sandbox/sebastien/java/embed/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/AsyncInvocation.java @@ -0,0 +1,29 @@ +/* + * Copyright(C) OASIS(R) 2005,2010. All Rights Reserved. + * OASIS trademark, IPR and other policies apply. + */ +package org.oasisopen.sca.annotation; + +import static java.lang.annotation.ElementType.METHOD; +import static java.lang.annotation.ElementType.TYPE; +import static java.lang.annotation.RetentionPolicy.RUNTIME; +import static org.oasisopen.sca.Constants.SCA_PREFIX; + +import java.lang.annotation.Inherited; +import java.lang.annotation.Retention; +import java.lang.annotation.Target; + +/** + * The @AsyncInvocation annotation is used to indicate that the operations of a Java interface + * uses the long-running request-response pattern as described in the SCA Assembly specification. + * + */ +@Inherited +@Target({TYPE, METHOD}) +@Retention(RUNTIME) +@Intent(AsyncInvocation.ASYNCINVOCATION) +public @interface AsyncInvocation { + String ASYNCINVOCATION = SCA_PREFIX + "asyncInvocation"; + + boolean value() default true; +} |