S - the target IntegrationComponentSpec implementation type.T - the target type.public abstract class IntegrationComponentSpec<S extends IntegrationComponentSpec<S,T>,T> extends AbstractFactoryBean<T> implements SmartLifecycle
get() method returns the final component.| Modifier and Type | Field and Description |
|---|---|
protected static SpelExpressionParser |
PARSER |
protected T |
target |
loggerDEFAULT_PHASEOBJECT_TYPE_ATTRIBUTE| 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() |
String |
getId() |
Class<?> |
getObjectType() |
int |
getPhase() |
protected S |
id(String idToSet)
Configure the component identifier.
|
boolean |
isAutoStartup() |
boolean |
isRunning() |
void |
start() |
void |
stop() |
void |
stop(Runnable callback) |
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingletonprotected static final SpelExpressionParser PARSER
protected volatile T target
protected S id(String idToSet)
beanName to register the
bean in the application context for this component.idToSet - the id.public final String getId()
public T get()
public Class<?> getObjectType()
getObjectType in interface FactoryBean<T>getObjectType in class AbstractFactoryBean<T>protected T createInstance()
createInstance in class AbstractFactoryBean<T>protected void destroyInstance(T instance)
destroyInstance in class AbstractFactoryBean<T>public boolean isAutoStartup()
isAutoStartup in interface SmartLifecyclepublic void stop(Runnable callback)
stop in interface SmartLifecyclepublic int getPhase()
getPhase in interface PhasedgetPhase in interface SmartLifecycleprotected final S _this()
protected T doGet()