public class DefaultEndpointFactory extends Object implements EndpointFactory
| Modifier and Type | Field and Description |
|---|---|
static String |
ENDPOINT_REGISTRY_PREFIX |
protected static org.apache.commons.logging.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 org.apache.commons.logging.Log logger
public static final String ENDPOINT_REGISTRY_PREFIX
protected MuleContext muleContext
public InboundEndpoint getInboundEndpoint(String uri) throws MuleException
EndpointFactoryInboundEndpoint interface is
currently used as the return type but this will be replaces by and more specific interface. SEE
MULE-2292getInboundEndpoint in interface EndpointFactoryuri - endpoint identifier or uriMuleExceptionpublic OutboundEndpoint getOutboundEndpoint(String uri) throws MuleException
EndpointFactoryOutboundEndpoint 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 EndpointFactoryuri - endpoint identifier or uriMuleExceptionprotected EndpointBuilder lookupEndpointBuilder(String endpointName)
public InboundEndpoint getInboundEndpoint(EndpointBuilder builder) throws MuleException
EndpointFactorygetInboundEndpoint in interface EndpointFactoryMuleExceptionpublic OutboundEndpoint getOutboundEndpoint(EndpointBuilder builder) throws MuleException
EndpointFactoryorg.mule.api.endpoint.OutboundEndpointExecutorFactory must
be used to wrap the outbound endpoint.getOutboundEndpoint in interface EndpointFactoryMuleExceptionprotected ImmutableEndpoint registerEndpoint(ImmutableEndpoint endpoint) throws RegistrationException
endpoint - RegistrationExceptionpublic EndpointBuilder getEndpointBuilder(String uri) throws MuleException
EndpointFactorygetEndpointBuilder in interface EndpointFactoryuri - endpoint identifier or uriMuleExceptionEndpointBuilder,
EndpointURIEndpointBuilderpublic void setMuleContext(MuleContext context)
setMuleContext in interface MuleContextAwarepublic InboundEndpoint getInboundEndpoint(EndpointURI uri) throws MuleException
getInboundEndpoint in interface EndpointFactoryMuleExceptionpublic OutboundEndpoint getOutboundEndpoint(EndpointURI uri) throws MuleException
getOutboundEndpoint in interface EndpointFactoryMuleExceptionprotected ImmutableEndpoint getEndpoint(EndpointURI uri, org.mule.endpoint.DefaultEndpointFactory.EndpointSource source) throws MuleException
MuleExceptionCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.