diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2010-09-07 23:52:54 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2010-09-07 23:52:54 +0000 |
commit | d123827b572d59f86e23d4e7fac42864d646ee60 (patch) | |
tree | e85a7e9a64391cf9b11830b5b6654dd51185be0d /sandbox/sebastien/java/shell/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Callback.java | |
parent | ba5e7230636b321793db90d642b066b423d59c34 (diff) |
Sandbox to experiment with deployment and management commands.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@993560 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sandbox/sebastien/java/shell/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Callback.java')
-rw-r--r-- | sandbox/sebastien/java/shell/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Callback.java | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/sandbox/sebastien/java/shell/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Callback.java b/sandbox/sebastien/java/shell/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Callback.java new file mode 100644 index 0000000000..cc68baaba9 --- /dev/null +++ b/sandbox/sebastien/java/shell/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Callback.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.FIELD; +import static java.lang.annotation.ElementType.METHOD; +import static java.lang.annotation.ElementType.TYPE; +import static java.lang.annotation.RetentionPolicy.RUNTIME; +import java.lang.annotation.Retention; +import java.lang.annotation.Target; + +/** + * The @Callback annotation is used to annotate a service interface + * with a callback interface, which takes the Java Class object of + * the callback interface as a parameter. + */ +@Target({TYPE, METHOD, FIELD}) +@Retention(RUNTIME) +public @interface Callback { + + /** + * The name of a Java class file containing the callback interface. + * + * @return the callback interface + */ + Class<?> value() default Void.class; +} |