public class EnableWebSocketCondition
extends java.lang.Object
implements org.springframework.context.annotation.Condition
Constructor and Description |
---|
EnableWebSocketCondition() |
Modifier and Type | Method and Description |
---|---|
boolean |
matches(org.springframework.context.annotation.ConditionContext context,
org.springframework.core.type.AnnotatedTypeMetadata metadata)
Determine if the condition matches.
|
public boolean matches(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata)
matches
in interface org.springframework.context.annotation.Condition
context
- the condition contextmetadata
- metadata of the class
or method
being checkedtrue
if the condition matches and the component can be registered,
or false
to veto the annotated component's registration