public class MyBatisComponent
extends org.apache.camel.impl.UriEndpointComponent
Constructor and Description |
---|
MyBatisComponent() |
Modifier and Type | Method and Description |
---|---|
protected org.apache.camel.Endpoint |
createEndpoint(String uri,
String remaining,
Map<String,Object> parameters) |
protected org.apache.ibatis.session.SqlSessionFactory |
createSqlSessionFactory() |
protected void |
doStart() |
protected void |
doStop() |
String |
getConfigurationUri() |
org.apache.ibatis.session.SqlSessionFactory |
getSqlSessionFactory() |
void |
setConfigurationUri(String configurationUri)
Location of MyBatis xml configuration file.
|
void |
setSqlSessionFactory(org.apache.ibatis.session.SqlSessionFactory sqlSessionFactory)
To use the
SqlSessionFactory |
createComponentConfiguration, createParameterConfigurationMap, getEndpointClass, getParameterConfigurationMap, populateParameterConfigurationMap, setEndpointClass
afterConfiguration, createConfiguration, createEndpoint, getAndRemoveOrResolveReferenceParameter, getAndRemoveOrResolveReferenceParameter, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, ifStartsWithReturnRemainder, preProcessUri, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, setCamelContext, setProperties, setProperties, useIntrospectionOnEndpoint, useRawUri, validateParameters, validateURI
protected org.apache.camel.Endpoint createEndpoint(String uri, String remaining, Map<String,Object> parameters) throws Exception
createEndpoint
in class org.apache.camel.impl.DefaultComponent
Exception
protected org.apache.ibatis.session.SqlSessionFactory createSqlSessionFactory() throws IOException
IOException
public org.apache.ibatis.session.SqlSessionFactory getSqlSessionFactory()
public void setSqlSessionFactory(org.apache.ibatis.session.SqlSessionFactory sqlSessionFactory)
SqlSessionFactory
public String getConfigurationUri()
public void setConfigurationUri(String configurationUri)
protected void doStart() throws Exception
doStart
in class org.apache.camel.impl.DefaultComponent
Exception
Apache Camel