Top Description Constructors Methods
org.springframework.context.annotation

pack-priv Class ProfileCondition

extends Object
implements Condition
Class Inheritance
All Implemented Interfaces
org.springframework.context.annotation.Condition
Imports
org.springframework.core.type.AnnotatedTypeMetadata, org.springframework.util.MultiValueMap

Condition that matches based on the value of a @Profile annotation.
Authors
Chris Beams, Phillip Webb, Juergen Hoeller
Since
4.0

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public boolean
matches(ConditionContext
the condition context
context
,
AnnotatedTypeMetadata
the metadata of the class or method being checked
metadata
)

Implements org.springframework.context.annotation.Condition.matches.

Determine if the condition matches.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ProfileConditionback to summary
pack-priv ProfileCondition()

Method Detail

matchesback to summary
public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata)

Implements org.springframework.context.annotation.Condition.matches.

Doc from org.springframework.context.annotation.Condition.matches.

Determine if the condition matches.

Parameters
context:ConditionContext

the condition context

metadata:AnnotatedTypeMetadata

the metadata of the class or method being checked

Returns:boolean

true if the condition matches and the component can be registered, or false to veto the annotated component's registration

Annotations
@Override