public abstract class SenderBase extends Object implements ISender
Modifier and Type | Field and Description |
---|---|
protected org.apache.logging.log4j.Logger |
log |
Constructor and Description |
---|
SenderBase() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Stop/close the sender and deallocate resources.
|
void |
configure()
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) |
protected String |
getLogPrefix()
Returns the true name of the class and not
XsltPipe$$EnhancerBySpringCGLIB$$563e6b5d . |
String |
getName() |
void |
open()
This method will be called to start the sender.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
final method to ensure nobody overrides this...
|
void |
setName(String name)
name of the sender
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
consumesSessionVariable, isSynchronous, sendMessage, sendMessageOrThrow
getApplicationContext
getConfigurationClassLoader
public void configure() throws ConfigurationException
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 the configure()
or open()
method, to improve performance.configure
in interface IConfigurable
configure
in interface ISender
ConfigurationException
public void open() throws SenderException
ISender
sendMessage()
method.open
in interface ISender
SenderException
public void close() throws SenderException
ISender
close
in interface ISender
SenderException
public final void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
protected <T> T createBean(Class<T> beanClass)
protected String getLogPrefix()
XsltPipe$$EnhancerBySpringCGLIB$$563e6b5d
.
ClassUtils.nameOf(Object)
makes sure the original class will be used.public void setName(String name)
setName
in interface INamedObject
public String getName()
getName
in interface IConfigurationAware
getName
in interface INamedObject
Copyright © 2023 Frank!Framework. All rights reserved.