Marked @Profile as @Documented

This commit is contained in:
Juergen Hoeller 2013-08-28 00:03:40 +02:00
parent 5efe894ee4
commit e812b6cea0
1 changed files with 3 additions and 1 deletions

View File

@ -16,6 +16,7 @@
package org.springframework.context.annotation; package org.springframework.context.annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy; import java.lang.annotation.RetentionPolicy;
@ -75,11 +76,12 @@ import org.springframework.core.env.ConfigurableEnvironment;
*/ */
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.METHOD}) @Target({ElementType.TYPE, ElementType.METHOD})
@Documented
@Conditional(ProfileCondition.class) @Conditional(ProfileCondition.class)
public @interface Profile { public @interface Profile {
/** /**
* The set of profiles for which this component should be registered. * The set of profiles for which the annotated component should be registered.
*/ */
String[] value(); String[] value();