Fixed javadoc references
This commit is contained in:
parent
a3df311bb5
commit
55f250afbc
|
|
@ -16,10 +16,8 @@
|
|||
|
||||
package org.springframework.context.annotation;
|
||||
|
||||
import org.jruby.internal.runtime.methods.MethodMethod;
|
||||
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
|
||||
import org.springframework.core.type.AnnotatedTypeMetadata;
|
||||
import org.springframework.core.type.AnnotationMetadata;
|
||||
|
||||
/**
|
||||
* A single {@code condition} that must be {@linkplain #matches matched} in order
|
||||
|
|
@ -45,10 +43,10 @@ public interface Condition {
|
|||
/**
|
||||
* Determine if the condition matches.
|
||||
* @param context the condition context
|
||||
* @param metadata meta-data of the {@link AnnotationMetadata class} or
|
||||
* {@link MethodMethod method} being checked.
|
||||
* @param metadata metadata of the {@link org.springframework.core.type.AnnotationMetadata class}
|
||||
* or {@link org.springframework.core.type.MethodMetadata method} being checked.
|
||||
* @return {@code true} if the condition matches and the component can be registered
|
||||
* or {@code false} to veto registration.
|
||||
* or {@code false} to veto registration.
|
||||
*/
|
||||
boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata);
|
||||
|
||||
|
|
|
|||
|
|
@ -41,20 +41,20 @@ import java.lang.annotation.Target;
|
|||
* {@code @Bean} methods and {@link Import @Import} annotations associated with that class
|
||||
* will be subject to the conditions.
|
||||
*
|
||||
* <p>NOTE: {@code @Conditional} annotations are not inherited, any conditions from
|
||||
* super-classes or from overridden methods are not considered.
|
||||
* <p>NOTE: {@code @Conditional} annotations are not inherited; any conditions from
|
||||
* superclasses or from overridden methods are not being considered.
|
||||
*
|
||||
* @author Phillip Webb
|
||||
* @since 4.0
|
||||
* @see Condition
|
||||
*/
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target({ ElementType.TYPE, ElementType.METHOD })
|
||||
@Target({ElementType.TYPE, ElementType.METHOD})
|
||||
public @interface Conditional {
|
||||
|
||||
/**
|
||||
* All {@link Condition}s that must {@linkplain Condition#matches match} in order for
|
||||
* the component to be registered.
|
||||
* All {@link Condition}s that must {@linkplain Condition#matches match}
|
||||
* in order for the component to be registered.
|
||||
*/
|
||||
Class<? extends Condition>[] value();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue