Class IntegrationProperties
java.lang.Object
org.springframework.integration.context.IntegrationProperties
public final class IntegrationProperties
extends java.lang.Object
Utility class to encapsulate infrastructure Integration properties constants and
their default values from resources 'META-INF/spring.integration.default.properties'.
- Since:
- 3.0
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCHANNELS_AUTOCREATESpecifies whether to allow create automaticallyDirectChannelbeans for non-declared channels or not.static java.lang.StringCHANNELS_MAX_BROADCAST_SUBSCRIBERSSpecifies the value forAbstractDispatcher.maxSubscribersin case of point-to-point channels (e.g.static java.lang.StringCHANNELS_MAX_UNICAST_SUBSCRIBERSSpecifies the value forAbstractDispatcher.maxSubscribersin case of point-to-point channels (e.g.static java.lang.StringENDPOINTS_NO_AUTO_STARTUPSpecifies the value ofAbstractEndpoint.autoStartup.static java.lang.StringERROR_CHANNEL_REQUIRE_SUBSCRIBERSSpecifies the value forPublishSubscribeChannel.requireSubscriberson a global defaultIntegrationContextUtils.ERROR_CHANNEL_BEAN_NAME.static java.lang.StringINTEGRATION_PROPERTIES_PREFIXstatic java.lang.StringREAD_ONLY_HEADERSSpecifies the value ofDefaultMessageBuilderFactory.readOnlyHeaders.static java.lang.StringTASK_SCHEDULER_POOL_SIZESpecifies the value ofThreadPoolTaskScheduler.poolSizefor thetaskSchedulerbean initialized by the Integration infrastructure.static java.lang.StringTHROW_EXCEPTION_ON_LATE_REPLYSpecifies the value ofGenericMessagingTemplate.throwExceptionOnLateReply. -
Method Summary
Modifier and Type Method Description static java.util.Propertiesdefaults()static java.lang.StringgetExpressionFor(java.lang.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
public static final java.lang.String INTEGRATION_PROPERTIES_PREFIX- See Also:
- Constant Field Values
-
CHANNELS_AUTOCREATE
public static final java.lang.String CHANNELS_AUTOCREATESpecifies whether to allow create automaticallyDirectChannelbeans for non-declared channels or not.- See Also:
- Constant Field Values
-
CHANNELS_MAX_UNICAST_SUBSCRIBERS
public static final java.lang.String CHANNELS_MAX_UNICAST_SUBSCRIBERSSpecifies 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
public static final java.lang.String CHANNELS_MAX_BROADCAST_SUBSCRIBERSSpecifies 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
public static final java.lang.String ERROR_CHANNEL_REQUIRE_SUBSCRIBERSSpecifies the value forPublishSubscribeChannel.requireSubscriberson a global defaultIntegrationContextUtils.ERROR_CHANNEL_BEAN_NAME.- See Also:
- Constant Field Values
-
TASK_SCHEDULER_POOL_SIZE
public static final java.lang.String TASK_SCHEDULER_POOL_SIZESpecifies the value ofThreadPoolTaskScheduler.poolSizefor thetaskSchedulerbean initialized by the Integration infrastructure.- See Also:
- Constant Field Values
-
THROW_EXCEPTION_ON_LATE_REPLY
public static final java.lang.String THROW_EXCEPTION_ON_LATE_REPLYSpecifies the value ofGenericMessagingTemplate.throwExceptionOnLateReply.- See Also:
- Constant Field Values
-
READ_ONLY_HEADERS
public static final java.lang.String READ_ONLY_HEADERSSpecifies the value ofDefaultMessageBuilderFactory.readOnlyHeaders.- See Also:
- Constant Field Values
-
ENDPOINTS_NO_AUTO_STARTUP
public static final java.lang.String ENDPOINTS_NO_AUTO_STARTUPSpecifies the value ofAbstractEndpoint.autoStartup.- See Also:
- Constant Field Values
-
-
Method Details
-
defaults
public static java.util.Properties defaults()- Returns:
Propertieswith default values for Integration properties from resources 'META-INF/spring.integration.default.properties'.
-
getExpressionFor
public static java.lang.String getExpressionFor(java.lang.String key)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:
java.lang.IllegalArgumentException- if providedkeyisn't an Integration property.
-