public abstract class AbstractMailQueueFactory extends Object implements MailQueueFactory, LogEnabled
MailQueueFactory
abstract base class which take care of register the
MailQueue
implementations via JMX (if possible)Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
log |
protected Map<String,MailQueue> |
queues |
SPOOL
Constructor and Description |
---|
AbstractMailQueueFactory() |
Modifier and Type | Method and Description |
---|---|
protected abstract MailQueue |
createMailQueue(String name)
Create a
MailQueue for the given name |
void |
destroy() |
MailQueue |
getQueue(String name)
Return the
MailQueue for the name. |
void |
init() |
protected void |
registerMBean(String queuename,
MailQueue queue) |
void |
setLog(org.slf4j.Logger log)
Sets the service log.
|
void |
setUseJMX(boolean useJMX) |
protected void |
unregisterMBean(String mbeanName) |
public void setUseJMX(boolean useJMX)
@PostConstruct public void init()
@PreDestroy public void destroy()
public final MailQueue getQueue(String name)
MailQueueFactory
MailQueue
for the name.getQueue
in interface MailQueueFactory
MailQueueFactory.getQueue(java.lang.String)
protected abstract MailQueue createMailQueue(String name)
MailQueue
for the given namename
- protected void unregisterMBean(String mbeanName)
public void setLog(org.slf4j.Logger log)
LogEnabled
setLog
in interface LogEnabled
log
- not nullLogEnabled.setLog(org.slf4j.Logger)
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.