org.mule.config.spring.factories
Class AbstractEndpointFactoryBean

java.lang.Object
  extended by org.mule.endpoint.AbstractEndpointBuilder
      extended by org.mule.endpoint.EndpointURIEndpointBuilder
          extended by org.mule.config.spring.factories.AbstractEndpointFactoryBean
All Implemented Interfaces:
Cloneable, MuleContextAware, EndpointBuilder, Initialisable, org.springframework.beans.factory.FactoryBean
Direct Known Subclasses:
InboundEndpointFactoryBean, OutboundEndpointFactoryBean

public abstract class AbstractEndpointFactoryBean
extends EndpointURIEndpointBuilder
implements org.springframework.beans.factory.FactoryBean, Initialisable

Abstract spring FactoryBean used to creating endpoints via spring.


Field Summary
protected  Log logger
           
 
Fields inherited from class org.mule.endpoint.AbstractEndpointBuilder
connector, createConnector, deleteUnacceptedMessages, encoding, filter, initialState, muleContext, name, properties, PROPERTY_RESPONSE_TIMEOUT, registryId, responseTimeout, responseTransformers, retryPolicyTemplate, securityFilter, synchronous, transactionConfig, transformers, uriBuilder
 
Fields inherited from interface org.mule.api.lifecycle.Initialisable
PHASE_NAME
 
Constructor Summary
AbstractEndpointFactoryBean()
           
AbstractEndpointFactoryBean(EndpointURIEndpointBuilder global)
           
 
Method Summary
protected abstract  Object doGetObject()
           
 Object getObject()
           
 void initialise()
          Method used to perform any initialisation work.
 boolean isSingleton()
           
 
Methods inherited from class org.mule.endpoint.AbstractEndpointBuilder
addTransformer, buildInboundEndpoint, buildOutboundEndpoint, clone, doBuildInboundEndpoint, doBuildOutboundEndpoint, equal, equals, getBooleanProperty, getConnector, getDefaultConnector, getDefaultDeleteUnacceptedMessages, getDefaultEndpointEncoding, getDefaultFilter, getDefaultInboundTransformers, getDefaultInitialState, getDefaultOutboundTransformers, getDefaultResponseTimeout, getDefaultResponseTransformers, getDefaultSecurityFilter, getDefaultSynchronous, getDefaultTransactionConfig, getDeleteUnacceptedMessages, getEndpointBuilder, getEndpointEncoding, getFilter, getInboundEndpointResponseTransformers, getInboundTransformers, getInitialState, getIntegerProperty, getName, getOutboundEndpointResponseTransformers, getOutboundTransformers, getProperties, getResponseTimeout, getRetryPolicyTemplate, getSecurityFilter, getSynchronous, getTransactionConfig, hashCode, setConnector, setCreateConnector, setDeleteUnacceptedMessages, setEncoding, setFilter, setInitialState, setMuleContext, setName, setProperties, setPropertiesFromProperties, setProperty, setRegistryId, setResponseTimeout, setResponseTransformers, setRetryPolicyTemplate, setSecurityFilter, setSynchronous, setTransactionConfig, setTransformers, setURIBuilder
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.beans.factory.FactoryBean
getObjectType
 

Field Detail

logger

protected final Log logger
Constructor Detail

AbstractEndpointFactoryBean

public AbstractEndpointFactoryBean(EndpointURIEndpointBuilder global)
                            throws EndpointException
Throws:
EndpointException

AbstractEndpointFactoryBean

public AbstractEndpointFactoryBean()
Method Detail

getObject

public Object getObject()
                 throws Exception
Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean
Throws:
Exception

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface org.springframework.beans.factory.FactoryBean

initialise

public void initialise()
                throws InitialisationException
Description copied from interface: Initialisable
Method used to perform any initialisation work. If a fatal error occurs during initialisation an InitialisationException should be thrown, causing the Mule instance to shutdown. If the error is recoverable, say by retrying to connect, a RecoverableException should be thrown. There is no guarantee that by throwing a Recoverable exception that the Mule instance will not shut down.

Specified by:
initialise in interface Initialisable
Throws:
InitialisationException - if a fatal error occurs causing the Mule instance to shutdown
RecoverableException - if an error occurs that can be recovered from

doGetObject

protected abstract Object doGetObject()
                               throws Exception
Throws:
Exception


Copyright © 2003-2009 MuleSource, Inc.. All Rights Reserved.