public class DefaultEndpointFactory extends Object implements EndpointFactory
Modifier and Type | Field and Description |
---|---|
static String |
ENDPOINT_REGISTRY_PREFIX |
protected static Log |
logger
logger used by this class
|
protected MuleContext |
muleContext |
Constructor and Description |
---|
DefaultEndpointFactory() |
Modifier and Type | Method and Description |
---|---|
protected ImmutableEndpoint |
getEndpoint(EndpointURI uri,
org.mule.endpoint.DefaultEndpointFactory.EndpointSource source) |
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 uri) |
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 uri) |
OutboundEndpoint |
getOutboundEndpoint(String uri)
Creates an endpoint with the "OUTBOUND" role.
|
protected EndpointBuilder |
lookupEndpointBuilder(String endpointName) |
protected ImmutableEndpoint |
registerEndpoint(ImmutableEndpoint endpoint) |
void |
setMuleContext(MuleContext context) |
protected static final Log logger
public static final String ENDPOINT_REGISTRY_PREFIX
protected MuleContext muleContext
public InboundEndpoint getInboundEndpoint(String uri) throws MuleException
EndpointFactory
InboundEndpoint
interface is
currently used as the return type but this will be replaces by and more specific interface. SEE
MULE-2292getInboundEndpoint
in interface EndpointFactory
uri
- endpoint identifier or uriMuleException
public OutboundEndpoint getOutboundEndpoint(String uri) throws MuleException
EndpointFactory
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.getOutboundEndpoint
in interface EndpointFactory
uri
- endpoint identifier or uriMuleException
protected EndpointBuilder lookupEndpointBuilder(String endpointName)
public InboundEndpoint getInboundEndpoint(EndpointBuilder builder) throws MuleException
EndpointFactory
getInboundEndpoint
in interface EndpointFactory
MuleException
public OutboundEndpoint getOutboundEndpoint(EndpointBuilder builder) throws MuleException
EndpointFactory
org.mule.api.endpoint.OutboundEndpointExecutorFactory
must
be used to wrap the outbound endpoint.getOutboundEndpoint
in interface EndpointFactory
MuleException
protected ImmutableEndpoint registerEndpoint(ImmutableEndpoint endpoint) throws RegistrationException
endpoint
- RegistrationException
public EndpointBuilder getEndpointBuilder(String uri) throws MuleException
EndpointFactory
getEndpointBuilder
in interface EndpointFactory
uri
- endpoint identifier or uriMuleException
EndpointBuilder
,
EndpointURIEndpointBuilder
public void setMuleContext(MuleContext context)
setMuleContext
in interface MuleContextAware
public InboundEndpoint getInboundEndpoint(EndpointURI uri) throws MuleException
getInboundEndpoint
in interface EndpointFactory
MuleException
public OutboundEndpoint getOutboundEndpoint(EndpointURI uri) throws MuleException
getOutboundEndpoint
in interface EndpointFactory
MuleException
protected ImmutableEndpoint getEndpoint(EndpointURI uri, org.mule.endpoint.DefaultEndpointFactory.EndpointSource source) throws MuleException
MuleException
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.