Annotation Interface ConditionalOnCosIdEnabled
@Retention(RUNTIME)
@Target({TYPE,METHOD})
@ConditionalOnProperty(value="cosid.enabled",
matchIfMissing=true,
havingValue="true")
public @interface ConditionalOnCosIdEnabled
Conditional annotation that enables beans when CosId is enabled.
This annotation can be applied to configuration classes or bean methods to conditionally create them only when CosId auto-configuration is enabled. By default, CosId is enabled unless explicitly disabled in configuration.
The condition checks the property cosid.enabled which defaults to true.
Example usage:
@Configuration
@ConditionalOnCosIdEnabled
public class MyCosIdConfiguration {
// Beans created only when CosId is enabled
}
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe configuration property key used to enable/disable CosId.
-
Field Details
-
ENABLED_KEY
The configuration property key used to enable/disable CosId.- See Also:
-