From f9be2165328dc76f562938566057e89c0723fe08 Mon Sep 17 00:00:00 2001 From: lresende Date: Wed, 11 Nov 2009 23:09:40 +0000 Subject: Moving 2.x branches git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@835137 13f79535-47bb-0310-9956-ffa450edef68 --- .../sca/annotation/AllowsPassByReference.java | 32 ------------- .../oasisopen/sca/annotation/Authentication.java | 55 ---------------------- .../oasisopen/sca/annotation/Authorization.java | 30 ------------ .../org/oasisopen/sca/annotation/Callback.java | 36 -------------- .../oasisopen/sca/annotation/ComponentName.java | 22 --------- .../oasisopen/sca/annotation/Confidentiality.java | 55 ---------------------- .../org/oasisopen/sca/annotation/Constructor.java | 22 --------- .../java/org/oasisopen/sca/annotation/Context.java | 25 ---------- .../java/org/oasisopen/sca/annotation/Destroy.java | 22 --------- .../org/oasisopen/sca/annotation/EagerInit.java | 22 --------- .../java/org/oasisopen/sca/annotation/Init.java | 23 --------- .../org/oasisopen/sca/annotation/Integrity.java | 55 ---------------------- .../java/org/oasisopen/sca/annotation/Intent.java | 45 ------------------ .../sca/annotation/ManagedSharedTransaction.java | 29 ------------ .../sca/annotation/ManagedTransaction.java | 40 ---------------- .../sca/annotation/MutualAuthentication.java | 30 ------------ .../sca/annotation/NoManagedTransaction.java | 29 ------------ .../java/org/oasisopen/sca/annotation/OneWay.java | 22 --------- .../org/oasisopen/sca/annotation/PolicySets.java | 32 ------------- .../org/oasisopen/sca/annotation/Property.java | 38 --------------- .../org/oasisopen/sca/annotation/Qualifier.java | 22 --------- .../org/oasisopen/sca/annotation/Reference.java | 37 --------------- .../org/oasisopen/sca/annotation/Remotable.java | 23 --------- .../org/oasisopen/sca/annotation/Requires.java | 43 ----------------- .../java/org/oasisopen/sca/annotation/Scope.java | 33 ------------- .../java/org/oasisopen/sca/annotation/Service.java | 45 ------------------ 26 files changed, 867 deletions(-) delete mode 100644 branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/AllowsPassByReference.java delete mode 100644 branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Authentication.java delete mode 100644 branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Authorization.java delete mode 100644 branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Callback.java delete mode 100644 branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/ComponentName.java delete mode 100644 branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Confidentiality.java delete mode 100644 branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Constructor.java delete mode 100644 branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Context.java delete mode 100644 branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Destroy.java delete mode 100644 branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/EagerInit.java delete mode 100644 branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Init.java delete mode 100644 branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Integrity.java delete mode 100644 branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Intent.java delete mode 100644 branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/ManagedSharedTransaction.java delete mode 100644 branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/ManagedTransaction.java delete mode 100644 branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/MutualAuthentication.java delete mode 100644 branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/NoManagedTransaction.java delete mode 100644 branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/OneWay.java delete mode 100644 branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/PolicySets.java delete mode 100644 branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Property.java delete mode 100644 branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Qualifier.java delete mode 100644 branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Reference.java delete mode 100644 branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Remotable.java delete mode 100644 branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Requires.java delete mode 100644 branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Scope.java delete mode 100644 branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Service.java (limited to 'branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation') diff --git a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/AllowsPassByReference.java b/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/AllowsPassByReference.java deleted file mode 100644 index d394a64f91..0000000000 --- a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/AllowsPassByReference.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright(C) OASIS(R) 2005,2009. 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.PARAMETER; -import static java.lang.annotation.ElementType.TYPE; -import static java.lang.annotation.RetentionPolicy.RUNTIME; - -import java.lang.annotation.Retention; -import java.lang.annotation.Target; - -/** - * Annotation on a service implementation class, on an individual method of a remotable service implementation, - * or on an individual reference which uses a remotable interface, where the reference is a field, a setter method, - * or a constructor parameter method. - * The annotation indicates that that the parameters and return value may safely - * be passed by reference. When the annotation is placed on a service implementation class or on a reference - * it indicates that all declared methods support this optimization. - * - * @version $Rev$ $Date$ - */ -@Target({TYPE, METHOD, FIELD, PARAMETER}) -@Retention(RUNTIME) -public @interface AllowsPassByReference { - - boolean value() default true; -} - diff --git a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Authentication.java b/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Authentication.java deleted file mode 100644 index 483fe2f293..0000000000 --- a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Authentication.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright(C) OASIS(R) 2005,2009. 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.PARAMETER; -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; - -/** - * Annotation denoting the intent that service operations require authentication. - *

- * Applied to the injection site (field, method or constructor parameter) for a reference, - * it indicates that all invocations through that reference require authentication. - *

- * Applied to a interface method on a service contract, it indicates that all invocations - * of that service operation require authentication; applied to the type of a service contract, - * it indicates that all service operations on that interface require authentication. - *

- * Applied to a method on an implementation class, it indicates that all invocations that - * are dispatched to that implementation method (through any service) require authentication. - * Applied to a interface implemented by an implementation class, it indicates that all - * invocations that are dispatched to the implementation method for that interface operation - * require authentication. - *

- * Applied to an implementation class, it indicates that all invocations of that implementation - * and that all invocations made by that implementation require authentication. - * - * @version $Rev$ $Date$ - */ -@Inherited -@Target({TYPE, FIELD, METHOD, PARAMETER}) -@Retention(RUNTIME) -@Intent(Authentication.AUTHENTICATION) -public @interface Authentication { - String AUTHENTICATION = SCA_PREFIX + "authentication"; - String AUTHENTICATION_MESSAGE = AUTHENTICATION + "message"; - String AUTHENTICATION_TRANSPORT = AUTHENTICATION + "transport"; - - /** - * List of authentication qualifiers (such as "message" or "transport"). - * - * @return authentication qualifiers - */ - @Qualifier - String[] value() default ""; -} diff --git a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Authorization.java b/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Authorization.java deleted file mode 100644 index 76fcd866ae..0000000000 --- a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Authorization.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright(C) OASIS(R) 2005,2009. 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.PARAMETER; -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 @Authorization annotation is used to indicate that - * an authorization policy is required - for a method, for an implementation class, for a reference - * (either injected as a method parameter or injected into a field) - */ -@Inherited -@Target({TYPE, FIELD, METHOD, PARAMETER}) -@Retention(RUNTIME) -@Intent(Authorization.AUTHORIZATION) -public @interface Authorization { - String AUTHORIZATION = SCA_PREFIX + "authorization"; -} - diff --git a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Callback.java b/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Callback.java deleted file mode 100644 index 03598e10d0..0000000000 --- a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Callback.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright(C) OASIS(R) 2005,2009. 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; - -/** - * When placed on a service interface, this annotation specifies the interface - * to be used for callbacks. - *

- * When placed on a method or field, this annotation denotes the injection - * site to be used for a callback reference. - *

- * There is a error in the 1.00 draft spec in the declaration of this interface. - * The form defined here is a proposed correction for that error. - * - * @version $Rev$ $Date$ - */ -@Target({TYPE, METHOD, FIELD}) -@Retention(RUNTIME) -public @interface Callback { - /** - * The Class of the associated callback interface. - * - * @return the associated callback interface - */ - Class value() default Void.class; -} diff --git a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/ComponentName.java b/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/ComponentName.java deleted file mode 100644 index 7debe2ba89..0000000000 --- a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/ComponentName.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright(C) OASIS(R) 2005,2009. 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.RetentionPolicy.RUNTIME; - -import java.lang.annotation.Retention; -import java.lang.annotation.Target; - -/** - * Annotation used to indicate a field or method that is used to inject the component's name. - * - * @version $Rev$ $Date$ - */ -@Target({METHOD, FIELD}) -@Retention(RUNTIME) -public @interface ComponentName { -} diff --git a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Confidentiality.java b/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Confidentiality.java deleted file mode 100644 index 5481a988b6..0000000000 --- a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Confidentiality.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright(C) OASIS(R) 2005,2009. 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.PARAMETER; -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; - -/** - * Annotation denoting the intent that service operations require confidentiality. - *

- * Applied to the injection site (field, method or constructor parameter) for a reference, - * it indicates that all invocations through that reference require confidentiality. - *

- * Applied to a interface method on a service contract, it indicates that all invocations - * of that service operation require confidentiality; applied to the type of a service contract, - * it indicates that all service operations on that interface require confidentiality. - *

- * Applied to a method on an implementation class, it indicates that all invocations that - * are dispatched to that implementation method (through any service) require confidentiality. - * Applied to a interface implemented by an implementation class, it indicates that all - * invocations that are dispatched to the implementation method for that interface operation - * require confidentiality. - *

- * Applied to an implementation class, it indicates that all invocations of that implementation - * and that all invocations made by that implementation require confidentiality. - * - * @version $Rev$ $Date$ - */ -@Inherited -@Target({TYPE, FIELD, METHOD, PARAMETER}) -@Retention(RUNTIME) -@Intent(Confidentiality.CONFIDENTIALITY) -public @interface Confidentiality { - String CONFIDENTIALITY = SCA_PREFIX + "confidentiality"; - String CONFIDENTIALITY_MESSAGE = CONFIDENTIALITY + ".message"; - String CONFIDENTIALITY_TRANSPORT = CONFIDENTIALITY + ".transport"; - - /** - * List of confidentiality qualifiers (such as "message" or "transport"). - * - * @return confidentiality qualifiers - */ - @Qualifier - String[] value() default ""; -} diff --git a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Constructor.java b/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Constructor.java deleted file mode 100644 index c1c99de683..0000000000 --- a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Constructor.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright(C) OASIS(R) 2005,2009. All Rights Reserved. - * OASIS trademark, IPR and other policies apply. - */ -package org.oasisopen.sca.annotation; - -import static java.lang.annotation.ElementType.CONSTRUCTOR; -import static java.lang.annotation.RetentionPolicy.RUNTIME; - -import java.lang.annotation.Retention; -import java.lang.annotation.Target; - -/** - * Used to indicate the constructor the runtime is to use when instantiating a component implementation instance - * - * @version $Rev$ $Date$ - */ -@Target(CONSTRUCTOR) -@Retention(RUNTIME) -public @interface Constructor { - String[] value() default ""; -} diff --git a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Context.java b/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Context.java deleted file mode 100644 index fce0334792..0000000000 --- a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Context.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright(C) OASIS(R) 2005,2009. 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.RetentionPolicy.RUNTIME; - -import java.lang.annotation.Retention; -import java.lang.annotation.Target; - -/** - * Annotation used to indicate a field or setter method that is used to inject an SCA context. - * The type of context injected is determined by the type of the field or the parameter - * to the setter method and is typically a ComponentContext or RequestContext. - * - * @version $Rev$ $Date$ - */ -@Target({METHOD, FIELD}) -@Retention(RUNTIME) -public @interface Context { -} - diff --git a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Destroy.java b/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Destroy.java deleted file mode 100644 index f9c6505648..0000000000 --- a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Destroy.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright(C) OASIS(R) 2005,2009. 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.RetentionPolicy.RUNTIME; - -import java.lang.annotation.Retention; -import java.lang.annotation.Target; - -/** - * Annotation used to indicate a method that will be called by the container when the - * scope defined for the local service ends. - * - * @version $Rev$ $Date$ - */ -@Target(METHOD) -@Retention(RUNTIME) -public @interface Destroy { -} diff --git a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/EagerInit.java b/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/EagerInit.java deleted file mode 100644 index a8e415a00b..0000000000 --- a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/EagerInit.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright(C) OASIS(R) 2005,2009. All Rights Reserved. - * OASIS trademark, IPR and other policies apply. - */ -package org.oasisopen.sca.annotation; - -import static java.lang.annotation.ElementType.TYPE; -import static java.lang.annotation.RetentionPolicy.RUNTIME; - -import java.lang.annotation.Retention; -import java.lang.annotation.Target; - -/** - * Annotation used to indicate an instance should be eagerly initialized. - * - * @version $Rev$ $Date$ - */ -@Target({TYPE}) -@Retention(RUNTIME) -public @interface EagerInit { - -} diff --git a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Init.java b/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Init.java deleted file mode 100644 index b8b38a1088..0000000000 --- a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Init.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright(C) OASIS(R) 2005,2009. 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.RetentionPolicy.RUNTIME; - -import java.lang.annotation.Retention; -import java.lang.annotation.Target; - -/** - * Annotation used to indicate a method that will be called by the container when the scope defined for the local - * service begins. - * - * @version $Rev$ $Date$ - */ -@Target(METHOD) -@Retention(RUNTIME) -public @interface Init { - -} diff --git a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Integrity.java b/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Integrity.java deleted file mode 100644 index 14cd5ec005..0000000000 --- a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Integrity.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright(C) OASIS(R) 2005,2009. 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.PARAMETER; -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; - -/** - * Annotation denoting the intent that service operations require integrity. - *

- * Applied to the injection site (field, method or constructor parameter) for a reference, - * it indicates that all invocations through that reference require integrity. - *

- * Applied to a interface method on a service contract, it indicates that all invocations - * of that service operation require integrity; applied to the type of a service contract, - * it indicates that all service operations on that interface require integrity. - *

- * Applied to a method on an implementation class, it indicates that all invocations that - * are dispatched to that implementation method (through any service) require integrity. - * Applied to a interface implemented by an implementation class, it indicates that all - * invocations that are dispatched to the implementation method for that interface operation - * require integrity. - *

- * Applied to an implementation class, it indicates that all invocations of that implementation - * and that all invocations made by that implementation require integrity. - * - * @version $Rev$ $Date$ - */ -@Inherited -@Target({TYPE, FIELD, METHOD, PARAMETER}) -@Retention(RUNTIME) -@Intent(Integrity.INTEGRITY) -public @interface Integrity { - String INTEGRITY = SCA_PREFIX + "integrity"; - String INTEGRITY_MESSAGE = INTEGRITY + "message"; - String INTEGRITY_TRANSPORT = INTEGRITY + "transport"; - - /** - * List of integrity qualifiers (such as "message" or "transport"). - * - * @return integrity qualifiers - */ - @Qualifier - String[] value() default ""; -} diff --git a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Intent.java b/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Intent.java deleted file mode 100644 index 54a1935859..0000000000 --- a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Intent.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright(C) OASIS(R) 2005,2009. All Rights Reserved. - * OASIS trademark, IPR and other policies apply. - */ -package org.oasisopen.sca.annotation; - -import static java.lang.annotation.ElementType.ANNOTATION_TYPE; -import static java.lang.annotation.RetentionPolicy.RUNTIME; - -import java.lang.annotation.Retention; -import java.lang.annotation.Target; - -/** - * Annotation that can be applied to annotations that describe SCA intents. - * Adding this annotation allows SCA runtimes to automatically detect user-defined intents. - *

- * Applications must specify a value, a pairing of targetNamespace and localPort, or both. - * If both value and pairing are supplied they must define the name qualified name. - * - * @version $Rev$ $Date$ - */ -@Target({ANNOTATION_TYPE}) -@Retention(RUNTIME) -public @interface Intent { - /** - * The qualified name of the intent, in the form defined by {@link javax.xml.namespace.QName#toString}. - * - * @return the qualified name of the intent - */ - String value() default ""; - - /** - * The XML namespace for the intent. - * - * @return the XML namespace for the intent - */ - String targetNamespace() default ""; - - /** - * The name of the intent within its namespace. - * - * @return name of the intent within its namespace - */ - String localPart() default ""; -} diff --git a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/ManagedSharedTransaction.java b/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/ManagedSharedTransaction.java deleted file mode 100644 index b12050a3e3..0000000000 --- a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/ManagedSharedTransaction.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright(C) OASIS(R) 2005,2009. 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.PARAMETER; -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 @ManagedSharedTransaction annotation is used to indicate that - * a distributed ACID transaction is required. - */ -@Inherited -@Target({TYPE, FIELD, METHOD, PARAMETER}) -@Retention(RUNTIME) -@Intent(ManagedSharedTransaction.MANAGEDSHAREDTRANSACTION) -public @interface ManagedSharedTransaction { - String MANAGEDSHAREDTRANSACTION = SCA_PREFIX + "managedSharedTransaction"; -} - diff --git a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/ManagedTransaction.java b/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/ManagedTransaction.java deleted file mode 100644 index 7115e8a5e9..0000000000 --- a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/ManagedTransaction.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright(C) OASIS(R) 2005,2009. 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.PARAMETER; -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 @ManagedTransaction annotation is used to indicate the - * need for an ACID transaction environment. - */ -@Inherited -@Target({TYPE, FIELD, METHOD, PARAMETER}) -@Retention(RUNTIME) -@Intent(ManagedTransaction.MANAGEDTRANSACTION) -public @interface ManagedTransaction { - String MANAGEDTRANSACTION = SCA_PREFIX + "managedTransaction"; - String MANAGEDTRANSACTION_MESSAGE = MANAGEDTRANSACTION + ".local"; - String MANAGEDTRANSACTION_TRANSPORT = MANAGEDTRANSACTION + ".global"; - - /** - * List of managedTransaction qualifiers (such as "global" or "local"). - * - * @return managedTransaction qualifiers - */ - @Qualifier - String[] value() default ""; -} - - diff --git a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/MutualAuthentication.java b/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/MutualAuthentication.java deleted file mode 100644 index d0825cd8e3..0000000000 --- a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/MutualAuthentication.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright(C) OASIS(R) 2005,2009. 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.PARAMETER; -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 @MutualAuthentication annotation is used to indicate that - * a mutual authentication policy is needed. - */ -@Inherited -@Target({TYPE, FIELD, METHOD, PARAMETER}) -@Retention(RUNTIME) -@Intent(MutualAuthentication.MUTUALAUTHENTICATION) -public @interface MutualAuthentication { - String MUTUALAUTHENTICATION = SCA_PREFIX + "mutualAuthentication"; -} - - diff --git a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/NoManagedTransaction.java b/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/NoManagedTransaction.java deleted file mode 100644 index b5ff494ca2..0000000000 --- a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/NoManagedTransaction.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright(C) OASIS(R) 2005,2009. 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.PARAMETER; -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 @NoManagedTransaction annotation is used to indicate that - * a non-transactional environment is needed. - */ -@Inherited -@Target({TYPE, FIELD, METHOD, PARAMETER}) -@Retention(RUNTIME) -@Intent(NoManagedTransaction.NOMANAGEDTRANSACTION) -public @interface NoManagedTransaction { - String NOMANAGEDTRANSACTION = SCA_PREFIX + "noManagedTransaction"; -} - diff --git a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/OneWay.java b/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/OneWay.java deleted file mode 100644 index 700e71990c..0000000000 --- a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/OneWay.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright(C) OASIS(R) 2005,2009. 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.RetentionPolicy.RUNTIME; - -import java.lang.annotation.Retention; -import java.lang.annotation.Target; - -/** - * Annotation on a method that indicates that the method is non-blocking and communication - * with the service provider may use buffer the requests and send them at some later time. - * - * @version $Rev$ $Date$ - */ -@Target({METHOD}) -@Retention(RUNTIME) -public @interface OneWay { -} diff --git a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/PolicySets.java b/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/PolicySets.java deleted file mode 100644 index 69f5828045..0000000000 --- a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/PolicySets.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright(C) OASIS(R) 2005,2009. 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.PARAMETER; -import static java.lang.annotation.ElementType.TYPE; -import static java.lang.annotation.RetentionPolicy.RUNTIME; - -import java.lang.annotation.Retention; -import java.lang.annotation.Target; - -/** - * Annotation that allows application of SCA Policy Sets. - *

- * Each policy set is specified using its XML QName in the form defined by {@link javax.xml.namespace.QName#toString()}. - * - * @version $Rev$ $Date$ - */ -@Target({TYPE, FIELD, METHOD, PARAMETER}) -@Retention(RUNTIME) -public @interface PolicySets { - /** - * Returns the policy sets to be applied. - * - * @return the policy sets to be applied - */ - String[] value() default ""; -} diff --git a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Property.java b/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Property.java deleted file mode 100644 index 5905946627..0000000000 --- a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Property.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright(C) OASIS(R) 2005,2009. 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.PARAMETER; -import static java.lang.annotation.RetentionPolicy.RUNTIME; - -import java.lang.annotation.Retention; -import java.lang.annotation.Target; - -/** - * Annotation used to indicate a constructor parameter, field or method that is - * used to inject a configuration property value. - * - * @version $Rev$ $Date$ - */ -@Target({METHOD, FIELD, PARAMETER}) -@Retention(RUNTIME) -public @interface Property { - /** - * The name of the property. If not specified then the name will be derived - * from the annotated field or method. - * - * @return the name of the property - */ - String name() default ""; - - /** - * Indicates whether a value for the property must be provided. - * - * @return true if a value must be provided - */ - boolean required() default true; -} diff --git a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Qualifier.java b/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Qualifier.java deleted file mode 100644 index 97204fdf32..0000000000 --- a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Qualifier.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright(C) OASIS(R) 2005,2009. 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.RetentionPolicy.RUNTIME; - -import java.lang.annotation.Retention; -import java.lang.annotation.Target; - -/** - * Annotation that can be applied to an attribute of an @Intent annotation to indicate the - * attribute provides qualifiers for the intent. - * - * @version $Rev$ $Date$ - */ -@Target(METHOD) -@Retention(RUNTIME) -public @interface Qualifier { -} diff --git a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Reference.java b/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Reference.java deleted file mode 100644 index 8f7d6b2043..0000000000 --- a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Reference.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright(C) OASIS(R) 2005,2009. 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.PARAMETER; -import static java.lang.annotation.RetentionPolicy.RUNTIME; - -import java.lang.annotation.Retention; -import java.lang.annotation.Target; - -/** - * Annotation used to indicate a constructor parameter, field or method that is used to inject a reference. - * - * @version $Rev$ $Date$ - */ -@Target({METHOD, FIELD, PARAMETER}) -@Retention(RUNTIME) -public @interface Reference { - /** - * The name of the reference. If not specified then the name will be derived from the annotated field or method. - * - * @return the name of the reference - */ - String name() default ""; - - /** - * Indicates if a reference must be specified. - * - * @return true if a reference must be specified - */ - boolean required() default true; -} - diff --git a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Remotable.java b/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Remotable.java deleted file mode 100644 index 3f7ac2623a..0000000000 --- a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Remotable.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright(C) OASIS(R) 2005,2009. All Rights Reserved. - * OASIS trademark, IPR and other policies apply. - */ -package org.oasisopen.sca.annotation; - -import static java.lang.annotation.ElementType.TYPE; -import static java.lang.annotation.RetentionPolicy.RUNTIME; - -import java.lang.annotation.Retention; -import java.lang.annotation.Target; - -/** - * Annotation used to indicate a Java interface as remotable. - * Remotable interfaces use pass-by-value semantics, can be published as entry points - * and used for external services. - * - * @version $Rev$ $Date$ - */ -@Target(TYPE) -@Retention(RUNTIME) -public @interface Remotable { -} diff --git a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Requires.java b/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Requires.java deleted file mode 100644 index 08eb0a8935..0000000000 --- a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Requires.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright(C) OASIS(R) 2005,2009. 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.PARAMETER; -import static java.lang.annotation.ElementType.TYPE; -import static java.lang.annotation.RetentionPolicy.RUNTIME; - -import java.lang.annotation.Inherited; -import java.lang.annotation.Retention; -import java.lang.annotation.Target; - -/** - * Annotation that allows the attachment of any intent to a Java Class or interface or to members of that - * class such as methods, fields or constructor parameters. - *

- * Intents are specified as XML QNames in the representation defined by - * {@link javax.xml.namespace.QName#toString()}. Intents may be qualified with one or more - * suffixes separated by a "." such as: - *

- * This annotation supports general purpose intents specified as strings. Users may also define - * specific intents using the {@link @org.oasisopen.sca.annotation.Intent} annotation. - * - * @version $Rev$ $Date$ - */ -@Inherited -@Retention(RUNTIME) -@Target({TYPE, METHOD, FIELD, PARAMETER}) -public @interface Requires { - /** - * Returns the attached intents. - * - * @return the attached intents - */ - String[] value() default ""; -} diff --git a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Scope.java b/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Scope.java deleted file mode 100644 index 8f9a13430e..0000000000 --- a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Scope.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright(C) OASIS(R) 2005,2009. All Rights Reserved. - * OASIS trademark, IPR and other policies apply. - */ -package org.oasisopen.sca.annotation; - -import static java.lang.annotation.ElementType.TYPE; -import static java.lang.annotation.RetentionPolicy.RUNTIME; - -import java.lang.annotation.Retention; -import java.lang.annotation.Target; - -/** - * Annotation used to indicate a scoped service. - *

- * The spec refers to but does not describe an eager() attribute; this is an error in the draft. - * - * @version $Rev$ $Date$ - */ -@Target(TYPE) -@Retention(RUNTIME) -public @interface Scope { - /** - * The name of the scope. Values currently defined by the specification are: - *

- * - * @return the name of the scope - */ - String value() default "STATELESS"; -} diff --git a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Service.java b/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Service.java deleted file mode 100644 index a60754762e..0000000000 --- a/branches/sca-java-2.0-M4/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Service.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright(C) OASIS(R) 2005,2009. All Rights Reserved. - * OASIS trademark, IPR and other policies apply. - */ -package org.oasisopen.sca.annotation; - -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 @Service annotation is used on a component implementation - * class to specify the SCA services offered by the implementation. - * - * The class need not be declared as implementing all of the - * interfaces implied by the services, but all methods of the service - * interfaces must be present. - * - * A class used as the implementation of a service is not required - * to have a @Service annotation. If a class has no @Service annotation, - * then the rules determining which services are offered and what - * interfaces those services have are determined by the specific - * implementation type. - */ -@Target(TYPE) -@Retention(RUNTIME) -public @interface Service { - - /** - * The value is an array of interface or class objects that should be - * exposed as services by this component. - * - * @return the services of this component - */ - Class[] value(); - - /** - * The value is an array of strings which are used as the service names - * for each of the interfaces declared in the value array. - * - * @return the service names - */ - String[] names() default {}; -} -- cgit v1.2.3