Package org.frankframework.senders
Class AbstractSender
java.lang.Object
org.frankframework.senders.AbstractSender
- All Implemented Interfaces:
IConfigurable
,IConfigurationAware
,INamedObject
,IScopeProvider
,ISender
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
- Direct Known Subclasses:
AbstractSenderWithParameters
,DelaySender
Baseclass for senders.
- Since:
- 4.9
- Author:
- Gerrit van Brakel
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure()
is called once at startup of the framework in the configure method of the owner of this sender.protected <T> T
createBean
(Class<T> beanClass) org.springframework.context.ApplicationContext
This ClassLoader is set upon creation of the object, used to retrieve resources configured by the Ibis application.protected String
Returns the true name of the class and notXsltPipe$$EnhancerBySpringCGLIB$$563e6b5d
.getName()
final void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) final method to ensure nobody overrides this...void
name of the sendervoid
start()
This method will be called to start the sender.void
stop()
Stop/close the sender and deallocate resources.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.frankframework.core.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:ISender
configure()
is called once at startup of the framework in the configure method of the owner of this sender. Purpose of this method is to check whether the static configuration of the sender is correct. As much as possible class-instantiating should take place in theconfigure()
oropen()
method, to improve performance.- Specified by:
configure
in interfaceIConfigurable
- Specified by:
configure
in interfaceISender
- Throws:
ConfigurationException
-
start
public void start()Description copied from interface:ISender
This 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
public void stop()Description copied from interface:ISender
Stop/close the sender and deallocate resources. -
setApplicationContext
public final void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) final method to ensure nobody overrides this...- Specified by:
setApplicationContext
in 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
name of the sender- Specified by:
setName
in interfaceINamedObject
-
getName
- Specified by:
getName
in interfaceIConfigurationAware
- Specified by:
getName
in interfaceINamedObject
-
getConfigurationClassLoader
Description copied from interface:IScopeProvider
This ClassLoader is set upon creation of the object, used to retrieve resources configured by the Ibis application.- Specified by:
getConfigurationClassLoader
in interfaceIScopeProvider
- Returns:
- returns the ClassLoader created by the
ClassLoaderManager
.
-
getApplicationContext
public org.springframework.context.ApplicationContext getApplicationContext()- Specified by:
getApplicationContext
in interfaceIConfigurationAware
-