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 String
CHANNELS_AUTOCREATE
Specifies whether to allow create automaticallyDirectChannel
beans for non-declared channels or not.static String
CHANNELS_MAX_BROADCAST_SUBSCRIBERS
Specifies the value forAbstractDispatcher.maxSubscribers
in case of point-to-point channels (e.g.static String
CHANNELS_MAX_UNICAST_SUBSCRIBERS
Specifies the value forAbstractDispatcher.maxSubscribers
in case of point-to-point channels (e.g.static String
ENDPOINTS_NO_AUTO_STARTUP
Specifies the value ofAbstractEndpoint.autoStartup
.static String
ERROR_CHANNEL_REQUIRE_SUBSCRIBERS
Specifies the value forPublishSubscribeChannel.requireSubscribers
on a global defaultIntegrationContextUtils.ERROR_CHANNEL_BEAN_NAME
.static String
INTEGRATION_PROPERTIES_PREFIX
static String
READ_ONLY_HEADERS
Specifies the value ofDefaultMessageBuilderFactory.readOnlyHeaders
.static String
TASK_SCHEDULER_POOL_SIZE
Specifies the value ofThreadPoolTaskScheduler.poolSize
for thetaskScheduler
bean initialized by the Integration infrastructure.static String
THROW_EXCEPTION_ON_LATE_REPLY
Specifies the value ofGenericMessagingTemplate.throwExceptionOnLateReply
. -
Method Summary
Modifier and Type Method Description static Properties
defaults()
static String
getExpressionFor(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 automaticallyDirectChannel
beans for non-declared channels or not.- See Also:
- Constant Field Values
-
CHANNELS_MAX_UNICAST_SUBSCRIBERS
Specifies the value forAbstractDispatcher.maxSubscribers
in case of point-to-point channels (e.g.ExecutorChannel
), if the attributemax-subscribers
isn't configured on the channel component.- See Also:
- Constant Field Values
-
CHANNELS_MAX_BROADCAST_SUBSCRIBERS
Specifies the value forAbstractDispatcher.maxSubscribers
in case of point-to-point channels (e.g.PublishSubscribeChannel
), if the attributemax-subscribers
isn't configured on the channel component.- See Also:
- Constant Field Values
-
ERROR_CHANNEL_REQUIRE_SUBSCRIBERS
Specifies the value forPublishSubscribeChannel.requireSubscribers
on a global defaultIntegrationContextUtils.ERROR_CHANNEL_BEAN_NAME
.- See Also:
- Constant Field Values
-
TASK_SCHEDULER_POOL_SIZE
Specifies the value ofThreadPoolTaskScheduler.poolSize
for thetaskScheduler
bean 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:
Properties
with 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 providedkey
isn't an Integration property.
-