From e6c733c4d9d9116216c0a0105b770267918a12f9 Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Sun, 29 Aug 2010 18:32:20 +0000 Subject: 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 --- .../org/oasisopen/sca/annotation/Callback.java | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 sandbox/sebastien/java/embed/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Callback.java (limited to 'sandbox/sebastien/java/embed/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Callback.java') diff --git a/sandbox/sebastien/java/embed/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Callback.java b/sandbox/sebastien/java/embed/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/embed/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; +} -- cgit v1.2.3