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 org.apache.commons.logging.Log |
logger |
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 id)
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 final org.apache.commons.logging.Log logger
protected volatile T target
protected S id(java.lang.String id)
beanName
to register the
bean in the application context for this component.id
- the id.public final java.lang.String getId()
public T get()
public java.lang.Class<?> getObjectType()
protected T createInstance() throws java.lang.Exception
createInstance
in class org.springframework.beans.factory.config.AbstractFactoryBean<T>
java.lang.Exception
protected void destroyInstance(T instance) throws java.lang.Exception
destroyInstance
in class org.springframework.beans.factory.config.AbstractFactoryBean<T>
java.lang.Exception
public void start()
start
in interface org.springframework.context.Lifecycle
public void stop()
stop
in interface org.springframework.context.Lifecycle
public boolean isRunning()
isRunning
in interface org.springframework.context.Lifecycle
public boolean isAutoStartup()
isAutoStartup
in interface org.springframework.context.SmartLifecycle
public void stop(java.lang.Runnable callback)
stop
in interface org.springframework.context.SmartLifecycle
public int getPhase()
getPhase
in interface org.springframework.context.Phased
protected final S _this()
protected T doGet()