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,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 Logprotected static final SpelExpressionParserprotected TFields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTEFields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected final S_this()voidvoiddestroy()protected TdoGet()get()Deprecated, for removal: This API element is subject to removal in a future version.final StringgetId()!!! This method must not be called from the target configuration !!!Class<?>intgetPhase()protected SConfigure the component identifier.booleanbooleanvoidstart()voidstop()voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.FactoryBean
isSingleton 
- 
Field Details
- 
PARSER
 - 
logger
 - 
target
 
 - 
 - 
Constructor Details
- 
IntegrationComponentSpec
public IntegrationComponentSpec() 
 - 
 - 
Method Details
- 
id
Configure the component identifier. Used as thebeanNameto register the bean in the application context for this component.- Parameters:
 idToSet- the id.- Returns:
 - the spec.
 
 - 
getId
 - 
get
Deprecated, for removal: This API element is subject to removal in a future version.since 6.1 with no-op for end-user: thegetObject()is called by the framework at the appropriate phase.- Returns:
 - the configured component.
 
 - 
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
public void start() - 
stop
public void stop() - 
isRunning
public boolean 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
 
 - 
 
getObject()is called by the framework at the appropriate phase.