properties.put(MessageProcessorPollingMessageReceiver.SOURCE_MESSAGE_PROCESSOR_PROPERTY_NAME, messageProcessor);
properties.put(MessageProcessorPollingMessageReceiver.POLL_OVERRIDE_PROPERTY_NAME, override);
properties.put(MessageProcessorPollingMessageReceiver.SCHEDULER_FACTORY_PROPERTY_NAME, schedulerFactory == null ? defaultSchedulerFactory() : schedulerFactory);
properties.put(AbstractConnector.PROPERTY_POLLING_FREQUENCY, frequency);
EndpointFactory ef = muleContext.getEndpointFactory();
if (ef != null)
{
return ef.getInboundEndpoint(this);
}
else
{
throw new ConfigurationException(
MessageFactory.createStaticMessage("EndpointFactory not found in Registry"));