Class AbstractSender
java.lang.Object
org.frankframework.senders.AbstractSender
- All Implemented Interfaces:
FrankElement, HasApplicationContext, HasName, IConfigurable, IScopeProvider, ISender, NameAware, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.context.Lifecycle
- Direct Known Subclasses:
AbstractSenderWithParameters, DelaySender
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidConfigure this component.protected <T> TcreateBean(Class<T> beanClass) protected StringReturns the true name of the class and notXsltPipe$$EnhancerBySpringCGLIB$$563e6b5d.getName()booleanfinal voidsetApplicationContext(@NonNull org.springframework.context.ApplicationContext applicationContext) final method to ensure nobody overrides this...voidname of the sendervoidstart()This method will be called to start the sender.voidstop()Stop/close the sender and deallocate resources.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface FrankElement
addConfigWarningMethods inherited from interface HasApplicationContext
getApplicationContext, getConfigurationClassLoaderMethods inherited from interface ISender
consumesSessionVariable, isSynchronous, sendMessage, sendMessageOrThrow
-
Field Details
-
log
protected org.apache.logging.log4j.Logger log
-
-
Constructor Details
-
AbstractSender
public AbstractSender()
-
-
Method Details
-
configure
Description copied from interface:IConfigurableConfigure this component.configure()is called once at startup of the framework in the configure method of the owner of thisIConfigurable. Purpose of this method is to check whether the static configuration of the object is correct. As much as possible class-instantiating should take place in theconfigure(), to improve performance.In the case of a container, this will propagate the configure signal to all components that apply.
- Specified by:
configurein interfaceIConfigurable- Throws:
ConfigurationException- in case it was not able to configure the component.
-
start
public void start()Description copied from interface:ISenderThis method will be called to start the sender. After this method is called the sendMessage method may be called. Purpose of this method is to reduce creating connections to databases etc. in thesendMessage()method. -
stop
-
isRunning
public boolean isRunning()- Specified by:
isRunningin interfaceorg.springframework.context.Lifecycle
-
setApplicationContext
public final void setApplicationContext(@NonNull org.springframework.context.ApplicationContext applicationContext) final method to ensure nobody overrides this...- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
-
createBean
-
getLogPrefix
Returns the true name of the class and notXsltPipe$$EnhancerBySpringCGLIB$$563e6b5d.ClassUtils.nameOf(Object)makes sure the original class will be used.- Returns:
- className + name of the ISender
-
setName
-
getName
-