@Override
public InboundEndpoint getEndpoint() throws Exception
{
if (this.endpoint == null)
{
EndpointBuilder builder = new EndpointURIEndpointBuilder(
"rmi://localhost:11099/TestMatchingMethodsComponent?method=reverseString", muleContext);
if (connector == null)
{
throw new InitialisationException(
MessageFactory.createStaticMessage("Connector has not been initialized."), null);
}
builder.setConnector(connector);
Map<Object, Object> properties = new HashMap<Object, Object>();
properties.put("methodArgumentTypes", "java.lang.String");
properties.put("methodArgumentsList", Arrays.asList(new String[]{"test"}));
builder.setProperties(properties);
endpoint = muleContext.getEndpointFactory().getInboundEndpoint(builder);
return endpoint;
}
return this.endpoint;