public abstract class SenderBase extends Object implements ISender, org.springframework.context.ApplicationContextAware
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. |
boolean |
consumesSessionVariable(String sessionKey)
returns
true if the sender or one of its children use the named session variable. |
protected <T> T |
createBean(Class<T> beanClass) |
protected String |
getLogPrefix()
Returns the true name of the class and not
XsltPipe$$EnhancerBySpringCGLIB$$563e6b5d . |
String |
getName() |
boolean |
isSynchronous()
When
true , the result of sendMessage is the reply of the request. |
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
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)
public boolean isSynchronous()
ISender
true
, the result of sendMessage is the reply of the request.isSynchronous
in interface ISender
protected String getLogPrefix()
XsltPipe$$EnhancerBySpringCGLIB$$563e6b5d
.
ClassUtils.nameOf(Object)
makes sure the original class will be used.public boolean consumesSessionVariable(String sessionKey)
ISender
true
if the sender or one of its children use the named session variable.
Callers can use this to determine if a message needs to be preserved.consumesSessionVariable
in interface ISender
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.