S - the target IntegrationComponentSpec implementation type.T - the target type.public abstract class IntegrationComponentSpec<S extends IntegrationComponentSpec<S,T>,T> extends Object implements FactoryBean<T>
get() method returns the final component.| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger |
protected static SpelExpressionParser |
PARSER |
protected T |
target |
| Constructor and Description |
|---|
IntegrationComponentSpec() |
| Modifier and Type | Method and Description |
|---|---|
protected S |
_this() |
protected T |
doGet() |
T |
get() |
String |
getId() |
T |
getObject() |
Class<?> |
getObjectType() |
protected S |
id(String id)
Configure the component identifier.
|
boolean |
isSingleton() |
protected static final SpelExpressionParser PARSER
protected final org.apache.commons.logging.Log logger
protected volatile T target
protected S id(String id)
beanName to register the
bean in the application context for this component.id - the id.public final String getId()
public final T get()
public T getObject() throws Exception
getObject in interface FactoryBean<T>Exceptionpublic Class<?> getObjectType()
getObjectType in interface FactoryBean<T>public boolean isSingleton()
isSingleton in interface FactoryBean<T>protected final S _this()
protected T doGet()