Class IntegrationProperties
java.lang.Object
org.springframework.integration.context.IntegrationProperties
public final class IntegrationProperties extends Object
Utility class to encapsulate infrastructure Integration properties constants and
their default values from resources 'META-INF/spring.integration.default.properties'.
- Since:
- 3.0
- Author:
- Artem Bilan
-
Field Summary
Fields Modifier and Type Field Description static StringCHANNELS_AUTOCREATESpecifies whether to allow create automaticallyDirectChannelbeans for non-declared channels or not.static StringCHANNELS_MAX_BROADCAST_SUBSCRIBERSSpecifies the value forAbstractDispatcher.maxSubscribersin case of point-to-point channels (e.g.static StringCHANNELS_MAX_UNICAST_SUBSCRIBERSSpecifies the value forAbstractDispatcher.maxSubscribersin case of point-to-point channels (e.g.static StringENDPOINTS_NO_AUTO_STARTUPSpecifies the value ofAbstractEndpoint.autoStartup.static StringERROR_CHANNEL_REQUIRE_SUBSCRIBERSSpecifies the value forPublishSubscribeChannel.requireSubscriberson a global defaultIntegrationContextUtils.ERROR_CHANNEL_BEAN_NAME.static StringINTEGRATION_PROPERTIES_PREFIXstatic StringREAD_ONLY_HEADERSSpecifies the value ofDefaultMessageBuilderFactory.readOnlyHeaders.static StringTASK_SCHEDULER_POOL_SIZESpecifies the value ofThreadPoolTaskScheduler.poolSizefor thetaskSchedulerbean initialized by the Integration infrastructure.static StringTHROW_EXCEPTION_ON_LATE_REPLYSpecifies the value ofGenericMessagingTemplate.throwExceptionOnLateReply. -
Method Summary
Modifier and Type Method Description static Propertiesdefaults()static StringgetExpressionFor(String key)Build the bean property definition expression to resolve the value from Integration properties within the bean building phase.
-
Field Details
-
INTEGRATION_PROPERTIES_PREFIX
- See Also:
- Constant Field Values
-
CHANNELS_AUTOCREATE
Specifies whether to allow create automaticallyDirectChannelbeans for non-declared channels or not.- See Also:
- Constant Field Values
-
CHANNELS_MAX_UNICAST_SUBSCRIBERS
Specifies the value forAbstractDispatcher.maxSubscribersin case of point-to-point channels (e.g.ExecutorChannel), if the attributemax-subscribersisn't configured on the channel component.- See Also:
- Constant Field Values
-
CHANNELS_MAX_BROADCAST_SUBSCRIBERS
Specifies the value forAbstractDispatcher.maxSubscribersin case of point-to-point channels (e.g.PublishSubscribeChannel), if the attributemax-subscribersisn't configured on the channel component.- See Also:
- Constant Field Values
-
ERROR_CHANNEL_REQUIRE_SUBSCRIBERS
Specifies the value forPublishSubscribeChannel.requireSubscriberson a global defaultIntegrationContextUtils.ERROR_CHANNEL_BEAN_NAME.- See Also:
- Constant Field Values
-
TASK_SCHEDULER_POOL_SIZE
Specifies the value ofThreadPoolTaskScheduler.poolSizefor thetaskSchedulerbean initialized by the Integration infrastructure.- See Also:
- Constant Field Values
-
THROW_EXCEPTION_ON_LATE_REPLY
Specifies the value ofGenericMessagingTemplate.throwExceptionOnLateReply.- See Also:
- Constant Field Values
-
READ_ONLY_HEADERS
Specifies the value ofDefaultMessageBuilderFactory.readOnlyHeaders.- See Also:
- Constant Field Values
-
ENDPOINTS_NO_AUTO_STARTUP
Specifies the value ofAbstractEndpoint.autoStartup.- See Also:
- Constant Field Values
-
-
Method Details
-
defaults
- Returns:
Propertieswith default values for Integration properties from resources 'META-INF/spring.integration.default.properties'.
-
getExpressionFor
Build the bean property definition expression to resolve the value from Integration properties within the bean building phase.- Parameters:
key- the Integration property key.- Returns:
- the bean property definition expression.
- Throws:
IllegalArgumentException- if providedkeyisn't an Integration property.
-