org.mule.providers
Class AbstractServiceEnabledConnector

java.lang.Object
  extended byorg.mule.providers.AbstractConnector
      extended byorg.mule.providers.AbstractServiceEnabledConnector
All Implemented Interfaces:
Disposable, java.beans.ExceptionListener, Initialisable, Startable, Stoppable, UMOConnector
Direct Known Subclasses:
AxisConnector, FileConnector, GlueConnector, JdbcConnector, JmsConnector, Pop3Connector, ServletConnector, SmtpConnector, StreamConnector, TcpConnector, UdpConnector, VMConnector, XmppConnector

public abstract class AbstractServiceEnabledConnector
extends AbstractConnector

AbstractServiceEnabledConnector initialises a connector from a sercive descriptor. using this method greatly reduces the code required to implement a connector and means that Mule can create connectors and endpoints from a url if the connector has a service descriptor.

Version:
$Revision: 1.4 $
Author:
Ross Mason
See Also:
ConnectorServiceDescriptor

Field Summary
protected  ConnectorServiceDescriptor serviceDescriptor
          Holds the service configuration for this connector
protected  java.util.Properties serviceOverrides
           
 
Fields inherited from class org.mule.providers.AbstractConnector
DEFAULT_RETRY_COUNT, DEFAULT_RETRY_FREQUENCY, defaultInboundTransformer, defaultOutboundTransformer, defaultResponseTransformer, dispatcherFactory, dispatchers, disposed, exceptionListener, initialised, logger, name, receivers, started
 
Constructor Summary
AbstractServiceEnabledConnector()
           
 
Method Summary
 UMOMessageReceiver createReceiver(UMOComponent component, UMOEndpoint endpoint)
           
 void doInitialise()
           
 UMOMessageAdapter getMessageAdapter(java.lang.Object message)
          Gets a UMOMessageAdapter for the endpoint for the given message (data)
protected  ConnectorServiceDescriptor getServiceDescriptor()
           
 java.util.Map getServiceOverrides()
           
protected  void initFromServiceDescriptor()
           
 void initialiseFromUrl(UMOEndpointURI endpointUri)
           
 void setServiceOverrides(java.util.Map serviceOverrides)
           
 
Methods inherited from class org.mule.providers.AbstractConnector
checkDisposed, createDispatcher, destroyReceiver, dispose, disposeConnector, exceptionThrown, getDefaultInboundTransformer, getDefaultOutboundTransformer, getDefaultResponseTransformer, getDispatcher, getDispatcherFactory, getDispatchers, getDispatcherThreadingProfile, getExceptionListener, getName, getProtocol, getReceiverKey, getReceiverThreadingProfile, getReplyToHandler, getRetryCount, getRetryFrequency, handleException, initialise, isDisposed, isDisposeDispatcherOnCompletion, isStarted, registerListener, setDefaultInboundTransformer, setDefaultOutboundTransformer, setDefaultResponseTransformer, setDispatcherFactory, setDispatcherThreadingProfile, setDisposeDispatcherOnCompletion, setExceptionListener, setName, setReceiverThreadingProfile, setRetryCount, setRetryFrequency, start, startConnector, stop, stopConnector, unregisterListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serviceDescriptor

protected ConnectorServiceDescriptor serviceDescriptor
Holds the service configuration for this connector


serviceOverrides

protected java.util.Properties serviceOverrides
Constructor Detail

AbstractServiceEnabledConnector

public AbstractServiceEnabledConnector()
Method Detail

doInitialise

public void doInitialise()
                  throws InitialisationException
Overrides:
doInitialise in class AbstractConnector
Throws:
InitialisationException

initialiseFromUrl

public void initialiseFromUrl(UMOEndpointURI endpointUri)
                       throws InitialisationException
Throws:
InitialisationException

initFromServiceDescriptor

protected void initFromServiceDescriptor()
                                  throws InitialisationException
Throws:
InitialisationException

getServiceDescriptor

protected ConnectorServiceDescriptor getServiceDescriptor()

createReceiver

public UMOMessageReceiver createReceiver(UMOComponent component,
                                         UMOEndpoint endpoint)
                                  throws java.lang.Exception
Specified by:
createReceiver in class AbstractConnector
Throws:
java.lang.Exception

getMessageAdapter

public UMOMessageAdapter getMessageAdapter(java.lang.Object message)
                                    throws MessagingException
Gets a UMOMessageAdapter for the endpoint for the given message (data)

Parameters:
message - the data with which to initialise the UMOMessageAdapter
Returns:
the UMOMessageAdapter for the endpoint
Throws:
MessagingException - if the message parameter is not supported
See Also:
UMOMessageAdapter

getServiceOverrides

public java.util.Map getServiceOverrides()

setServiceOverrides

public void setServiceOverrides(java.util.Map serviceOverrides)


Copyright © 2003-2005 SymphonySoft Limited. All Rights Reserved.