S - the target IntegrationComponentSpec implementation type.T - the target type.public abstract class IntegrationComponentSpec<S extends IntegrationComponentSpec<S,T>,T>
extends org.springframework.beans.factory.config.AbstractFactoryBean<T>
implements org.springframework.context.SmartLifecycle
get() method returns the final component.| Modifier and Type | Field and Description |
|---|---|
protected static org.springframework.expression.spel.standard.SpelExpressionParser |
PARSER |
protected T |
target |
| Constructor and Description |
|---|
IntegrationComponentSpec() |
| Modifier and Type | Method and Description |
|---|---|
protected S |
_this() |
protected T |
createInstance() |
protected void |
destroyInstance(T instance) |
protected T |
doGet() |
T |
get() |
java.lang.String |
getId() |
java.lang.Class<?> |
getObjectType() |
int |
getPhase() |
protected S |
id(java.lang.String idToSet)
Configure the component identifier.
|
boolean |
isAutoStartup() |
boolean |
isRunning() |
void |
start() |
void |
stop() |
void |
stop(java.lang.Runnable callback) |
protected static final org.springframework.expression.spel.standard.SpelExpressionParser PARSER
protected volatile T target
protected S id(java.lang.String idToSet)
beanName to register the
bean in the application context for this component.idToSet - the id.public final java.lang.String getId()
public T get()
public java.lang.Class<?> getObjectType()
protected T createInstance()
createInstance in class org.springframework.beans.factory.config.AbstractFactoryBean<T>protected void destroyInstance(T instance)
destroyInstance in class org.springframework.beans.factory.config.AbstractFactoryBean<T>public void start()
start in interface org.springframework.context.Lifecyclepublic void stop()
stop in interface org.springframework.context.Lifecyclepublic boolean isRunning()
isRunning in interface org.springframework.context.Lifecyclepublic boolean isAutoStartup()
isAutoStartup in interface org.springframework.context.SmartLifecyclepublic void stop(java.lang.Runnable callback)
stop in interface org.springframework.context.SmartLifecyclepublic int getPhase()
getPhase in interface org.springframework.context.PhasedgetPhase in interface org.springframework.context.SmartLifecycleprotected final S _this()
protected T doGet()