Service Component Architecture sca-j common Annotations and apis Specification Version 1 Committee Draft 03 – Rev1 + Issue 127



Download 0.81 Mb.
Page17/25
Date09.08.2017
Size0.81 Mb.
#29164
1   ...   13   14   15   16   17   18   19   20   ...   25

10.15@ManagedSharedTransaction


The following Java code defines the @ManagedSharedTransaction annotation:

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";

}

The @ManagedSharedTransaction annotation is used to indicate the need for a distributed and globally coordinated ACID transaction. See the SCA Policy Framework Specification [POLICY] for details on the meaning of the intent. See the section on Application of Intent Annotations for samples of how intent annotations are used in Java.


10.16@ManagedTransaction


The following Java code defines the @ManagedTransaction 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 "";

}

The @ManagedTransaction annotation is used to indicate the need for an ACID transaction. See the SCA Policy Framework Specification [POLICY] for details on the meaning of the intent. See the section on Application of Intent Annotations for samples of how intent annotations are used in Java.


10.17@MutualAuthentication


The following Java code defines the @MutualAuthentication annotation:

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";

}

The @MutualAuthentication annotation is used to indicate the need for mutual authentication between a service consumer and a service provider. See the SCA Policy Framework Specification [POLICY] for details on the meaning of the intent. See the section on Application of Intent Annotations for samples of how intent annotations are used in Java.


10.18@NoManagedTransaction


The following Java code defines the @NoManagedTransaction annotation:

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";

}

The @NoManagedTransaction annotation is used to indicate that the component does not want to run in an ACID transaction. See the SCA Policy Framework Specification [POLICY] for details on the meaning of the intent. See the section on Application of Intent Annotations for samples of how intent annotations are used in Java.



Directory: committees -> download.php
download.php -> Emergency Interoperability Consortium Membership Meeting
download.php -> Technical Communicators, Get ready: Here comes Augmented Reality! Rhonda Truitt
download.php -> Oasis set tc
download.php -> Iepd analyze Requirements Use Cases for edxl situation reporting messages Draft Version 4
download.php -> Technical Committee: oasis transformational Government Framework tc chair
download.php -> Ibops protocol Version 0 Working Draft 2 9 March 2015 Technical Committee
download.php -> Reliability of Messages Sent as Responses over an Underlying Request-response Protocol
download.php -> Scenario Two – Hurricane Warning
download.php -> Technical Committee: oasis augmented Reality in Information Products (arip) tc chairs
download.php -> This is intended as a Non-Standards Track Work Product. [Type the document title]

Download 0.81 Mb.

Share with your friends:
1   ...   13   14   15   16   17   18   19   20   ...   25




The database is protected by copyright ©ininet.org 2024
send message

    Main page