Skip to content

Commit 0765a05

Browse files
committed
(cherry picked from commit e812b6c)
1 parent 072e5e8 commit 0765a05

File tree

1 file changed

+6
-4
lines changed
  • spring-context/src/main/java/org/springframework/context/annotation

1 file changed

+6
-4
lines changed

spring-context/src/main/java/org/springframework/context/annotation/Profile.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2012 the original author or authors.
2+
* Copyright 2002-2013 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
1616

1717
package org.springframework.context.annotation;
1818

19+
import java.lang.annotation.Documented;
1920
import java.lang.annotation.ElementType;
2021
import java.lang.annotation.Retention;
2122
import java.lang.annotation.RetentionPolicy;
@@ -44,11 +45,11 @@
4445
*
4546
* <p>If a {@code @Configuration} class is marked with {@code @Profile}, all of the
4647
* {@code @Bean} methods and {@link Import @Import} annotations associated with that class
47-
* will be bypassed unless one or more the specified profiles are active. This is very
48+
* will be bypassed unless one or more of the specified profiles are active. This is very
4849
* similar to the behavior in Spring XML: if the {@code profile} attribute of the
4950
* {@code beans} element is supplied e.g., {@code <beans profile="p1,p2">}, the
5051
* {@code beans} element will not be parsed unless profiles 'p1' and/or 'p2' have been
51-
* activated. Likewise, if a {@code @Component} or {@code @Configuration} class is marked
52+
* activated. Likewise, if a {@code @Component} or {@code @Configuration} class is marked
5253
* with {@code @Profile({"p1", "p2"})}, that class will not be registered/processed unless
5354
* profiles 'p1' and/or 'p2' have been activated.
5455
*
@@ -73,10 +74,11 @@
7374
*/
7475
@Retention(RetentionPolicy.RUNTIME)
7576
@Target(ElementType.TYPE)
77+
@Documented
7678
public @interface Profile {
7779

7880
/**
79-
* The set of profiles for which this component should be registered.
81+
* The set of profiles for which the annotated component should be registered.
8082
*/
8183
String[] value();
8284

0 commit comments

Comments
 (0)