summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/tags/2.0.1-RC1/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Context.java
blob: 90cf9b81ce096a33ae228acd39c35d145a6b8675 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * 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.RetentionPolicy.RUNTIME;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

/**
 * The @Context annotation is used to denote a Java class field
 * or a setter method that is used to inject a composite context
 * for the component. The type of context to be injected is defined
 * by the type of the Java class field or type of the setter method
 * input argument; the type is either ComponentContext or RequestContext.
 *
 * The @Context annotation has no attributes.
 */
@Target({METHOD, FIELD})
@Retention(RUNTIME)
public @interface Context {
    
}