public interface EndpointFactory extends MuleContextAware
ImmutableEndpoint
. These endpoints may be Registry
should be used to lookup/create endpoints.Modifier and Type | Method and Description |
---|---|
EndpointBuilder |
getEndpointBuilder(String uri)
Used to retrieve the an EndpointBuilder equal to the one would be used to create an endpoint.
This is useful if you need to customize a builder before creation of an endpoint as you can use this method to obtain the endpoint builder, custommize it and then call the factory methods that take a EndpointBuilder rather than a String. |
InboundEndpoint |
getInboundEndpoint(EndpointBuilder builder)
Creates an endpoint with the "INBOUND" role using the builder provided.
|
InboundEndpoint |
getInboundEndpoint(EndpointURI endpointUri)
Deprecated.
|
InboundEndpoint |
getInboundEndpoint(String uri)
Creates an endpoint with the "INBOUND" role.
|
OutboundEndpoint |
getOutboundEndpoint(EndpointBuilder builder)
Creates an endpoint with the "OUTBOUND" role using the builder provided.
|
OutboundEndpoint |
getOutboundEndpoint(EndpointURI endpointUri)
Deprecated.
|
OutboundEndpoint |
getOutboundEndpoint(String uri)
Creates an endpoint with the "OUTBOUND" role.
|
setMuleContext
InboundEndpoint getInboundEndpoint(String uri) throws MuleException
InboundEndpoint
interface is
currently used as the return type but this will be replaces by and more specific interface. SEE
MULE-2292uri
- endpoint identifier or uriMuleException
OutboundEndpoint getOutboundEndpoint(String uri) throws MuleException
OutboundEndpoint
interface is
currently used as the return type but this will be replaces by and more specific interface. SEE
MULE-2292
To add an outbound endpoint in a pipeline an honor the execution context of an endpoint a org.mule.api.endpoint.OutboundEndpointExecutorFactory
must
be used to wrap the outbound endpoint.uri
- endpoint identifier or uriMuleException
InboundEndpoint getInboundEndpoint(EndpointBuilder builder) throws MuleException
builder
- MuleException
OutboundEndpoint getOutboundEndpoint(EndpointBuilder builder) throws MuleException
org.mule.api.endpoint.OutboundEndpointExecutorFactory
must
be used to wrap the outbound endpoint.builder
- MuleException
@Deprecated InboundEndpoint getInboundEndpoint(EndpointURI endpointUri) throws MuleException
endpointUri
- MuleException
@Deprecated OutboundEndpoint getOutboundEndpoint(EndpointURI endpointUri) throws MuleException
endpointUri
- MuleException
EndpointBuilder getEndpointBuilder(String uri) throws MuleException
uri
- endpoint identifier or uriMuleException
EndpointBuilder
,
EndpointURIEndpointBuilder
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.