Class IntegrationComponentSpec<S extends IntegrationComponentSpec<S,T>, T>
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<S,T>
- Type Parameters:
S- the targetIntegrationComponentSpecimplementation type.T- the target type.
- All Implemented Interfaces:
DisposableBean, FactoryBean<T>, InitializingBean, Lifecycle, Phased, SmartLifecycle
- Direct Known Subclasses:
AbstractConnectionFactorySpec, BroadcastPublishSubscribeSpec, EndpointSpec, JmsDestinationAccessorSpec, JmsOutboundGatewaySpec.ReplyContainerSpec, KafkaMessageListenerContainerSpec, KafkaTemplateSpec, MessageChannelSpec, MessageHandlerSpec, MessageListenerContainerSpec, MessageProcessorSpec, MessageProducerSpec, MessageSourceSpec, MessagingGatewaySpec, PollerSpec, StoredProcExecutorSpec, WireTapSpec
@IntegrationDsl
public abstract class IntegrationComponentSpec<S extends IntegrationComponentSpec<S,T>, T>
extends Object
implements FactoryBean<T>, InitializingBean, DisposableBean, SmartLifecycle
The common Builder abstraction.
If used as a bean definition, must be treated as an
FactoryBean,
therefore its getObject() method must not be called in the target configuration.- Since:
- 5.0
- Author:
- Artem Bilan
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.apache.commons.logging.Logprotected static final SpelExpressionParserprotected TFields inherited from interface FactoryBean
OBJECT_TYPE_ATTRIBUTEFields inherited from interface SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final S_this()voidvoiddestroy()protected TdoGet()final @Nullable StringgetId()!!! This method must not be called from the target configuration !!!Class<?> intgetPhase()protected SConfigure the component identifier.booleanbooleanvoidstart()voidstop()voidMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface FactoryBean
isSingletonMethods inherited from interface SmartLifecycle
isPauseable
-
Field Details
-
PARSER
-
logger
protected final org.apache.commons.logging.Log logger -
target
-
-
Constructor Details
-
IntegrationComponentSpec
public IntegrationComponentSpec()
-
-
Method Details
-
id
-
getId
-
getObjectType
- Specified by:
getObjectTypein interfaceFactoryBean<S extends IntegrationComponentSpec<S,T>>
-
getObject
!!! This method must not be called from the target configuration !!!- Specified by:
getObjectin interfaceFactoryBean<S extends IntegrationComponentSpec<S,T>> - Returns:
- the object backed by this factory bean.
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceInitializingBean
-
destroy
public void destroy()- Specified by:
destroyin interfaceDisposableBean
-
start
-
stop
-
isRunning
-
isAutoStartup
public boolean isAutoStartup()- Specified by:
isAutoStartupin interfaceSmartLifecycle
-
stop
- Specified by:
stopin interfaceSmartLifecycle
-
getPhase
public int getPhase()- Specified by:
getPhasein interfacePhased- Specified by:
getPhasein interfaceSmartLifecycle
-
_this
-
doGet
-